public class Call extends Object
Constructor and Description |
---|
Call(HTTP http,
OutputFile file) |
Modifier and Type | Method and Description |
---|---|
Response |
delete(String endpoint,
Request params)
Performs a delete http call and writes the call and response information
to the output file
|
Response |
get(String endpoint)
Performs a get http call and writes the call and response information to
the output file
|
Response |
get(String endpoint,
Request params)
Performs a get http call and writes the call and response information to
the output file
|
Response |
patch(String endpoint,
Request params)
Performs a patch http call and writes the call and response information
to the output file
|
Response |
post(String endpoint,
Request params)
Performs a post http call and writes the call and response information to
the output file
|
Response |
put(String endpoint,
Request params)
Performs a put http call and writes the call and response information to
the output file
|
public Call(HTTP http, OutputFile file)
public Response get(String endpoint)
endpoint
- - the endpoint of the service under testpublic Response get(String endpoint, Request params)
endpoint
- - the endpoint of the service under testparams
- - the parameters to be passed to the endpoint for the service
callpublic Response post(String endpoint, Request params)
endpoint
- - the endpoint of the service under testparams
- - the parameters to be passed to the endpoint for the service
callpublic Response put(String endpoint, Request params)
endpoint
- - the endpoint of the service under testparams
- - the parameters to be passed to the endpoint for the service
callpublic Response patch(String endpoint, Request params)
endpoint
- - the endpoint of the service under testparams
- - the parameters to be passed to the endpoint for the service
callpublic Response delete(String endpoint, Request params)
endpoint
- - the endpoint of the service under testparams
- - the parameters to be passed to the endpoint for the service
callCopyright © 2017. All rights reserved.