Package net.serenitybdd.rest
Class RestRequests
java.lang.Object
net.serenitybdd.rest.RestRequests
public class RestRequests
extends java.lang.Object
User: YamStranger
Date: 4/5/16
Time: 8:27 PM
This class directly calls some methods from SerenityRest related only to
making requests, can be used for better readability of code.
There is no difference in behaving between this class or SerenityRest.
-
Constructor Summary
Constructors Constructor Description RestRequests() -
Method Summary
Modifier and Type Method Description static io.restassured.response.Responsedelete()static io.restassured.response.Responsedelete(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responsedelete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responsedelete(java.net.URI uri)static io.restassured.response.Responsedelete(java.net.URL url)static io.restassured.specification.ResponseSpecificationexpect()static io.restassured.response.Responseget()static io.restassured.response.Responseget(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responseget(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responseget(java.net.URI uri)static io.restassured.response.Responseget(java.net.URL url)static io.restassured.specification.RequestSpecificationgiven()static io.restassured.specification.RequestSpecificationgiven(io.restassured.specification.RequestSpecification requestSpecification)static io.restassured.specification.RequestSendergiven(io.restassured.specification.RequestSpecification request, io.restassured.specification.ResponseSpecification response)static io.restassured.response.Responsehead()static io.restassured.response.Responsehead(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responsehead(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responsehead(java.net.URI uri)static io.restassured.response.Responsehead(java.net.URL url)static io.restassured.response.Responseoptions()static io.restassured.response.Responseoptions(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responseoptions(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responseoptions(java.net.URI uri)static io.restassured.response.Responseoptions(java.net.URL url)static io.restassured.response.Responsepatch()static io.restassured.response.Responsepatch(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responsepatch(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responsepatch(java.net.URI uri)static io.restassured.response.Responsepatch(java.net.URL url)static io.restassured.response.Responsepost()static io.restassured.response.Responsepost(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responsepost(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)static io.restassured.response.Responsepost(java.net.URI uri)static io.restassured.response.Responsepost(java.net.URL url)static io.restassured.response.Responseput()static io.restassured.response.Responseput(java.lang.String path, java.lang.Object... pathParams)static io.restassured.response.Responseput(java.net.URI uri)static io.restassured.response.Responseput(java.net.URL url)static io.restassured.specification.RequestSenderwhen()static io.restassured.specification.RequestSpecificationwith()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RestRequests
public RestRequests()
-
-
Method Details
-
get
public static io.restassured.response.Response get() -
get
public static io.restassured.response.Response get(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
get
public static io.restassured.response.Response get(java.lang.String path, java.lang.Object... pathParams) -
get
public static io.restassured.response.Response get(java.net.URI uri) -
get
public static io.restassured.response.Response get(java.net.URL url) -
delete
public static io.restassured.response.Response delete(java.lang.String path, java.lang.Object... pathParams) -
delete
public static io.restassured.response.Response delete() -
delete
public static io.restassured.response.Response delete(java.net.URI uri) -
delete
public static io.restassured.response.Response delete(java.net.URL url) -
delete
public static io.restassured.response.Response delete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
put
public static io.restassured.response.Response put(java.net.URL url) -
put
public static io.restassured.response.Response put() -
put
public static io.restassured.response.Response put(java.lang.String path, java.lang.Object... pathParams) -
put
public static io.restassured.response.Response put(java.net.URI uri) -
post
public static io.restassured.response.Response post(java.net.URI uri) -
post
public static io.restassured.response.Response post() -
post
public static io.restassured.response.Response post(java.net.URL url) -
post
public static io.restassured.response.Response post(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
post
public static io.restassured.response.Response post(java.lang.String path, java.lang.Object... pathParams) -
patch
public static io.restassured.response.Response patch(java.lang.String path, java.lang.Object... pathParams) -
patch
public static io.restassured.response.Response patch() -
patch
public static io.restassured.response.Response patch(java.net.URL url) -
patch
public static io.restassured.response.Response patch(java.net.URI uri) -
patch
public static io.restassured.response.Response patch(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
options
public static io.restassured.response.Response options(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
options
public static io.restassured.response.Response options(java.lang.String path, java.lang.Object... pathParams) -
options
public static io.restassured.response.Response options(java.net.URI uri) -
options
public static io.restassured.response.Response options(java.net.URL url) -
options
public static io.restassured.response.Response options() -
head
public static io.restassured.response.Response head(java.net.URL url) -
head
public static io.restassured.response.Response head(java.lang.String path, java.util.Map<java.lang.String,?> pathParams) -
head
public static io.restassured.response.Response head(java.lang.String path, java.lang.Object... pathParams) -
head
public static io.restassured.response.Response head() -
head
public static io.restassured.response.Response head(java.net.URI uri) -
given
public static io.restassured.specification.RequestSpecification given() -
when
public static io.restassured.specification.RequestSender when() -
given
public static io.restassured.specification.RequestSender given(io.restassured.specification.RequestSpecification request, io.restassured.specification.ResponseSpecification response) -
given
public static io.restassured.specification.RequestSpecification given(io.restassured.specification.RequestSpecification requestSpecification) -
expect
public static io.restassured.specification.ResponseSpecification expect() -
with
public static io.restassured.specification.RequestSpecification with()
-