java.lang.Object
net.serenitybdd.rest.RestRequests
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic io.restassured.response.Responsedelete()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.specification.ResponseSpecificationexpect()static io.restassured.response.Responseget()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic 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.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responseoptions()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsepatch()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsepost()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responseput()static io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.response.Responsestatic io.restassured.specification.RequestSenderwhen()static io.restassured.specification.RequestSpecificationwith()
-
Constructor Details
-
RestRequests
public RestRequests()
-
-
Method Details
-
get
public static io.restassured.response.Response get() -
get
-
get
-
get
-
get
-
delete
-
delete
public static io.restassured.response.Response delete() -
delete
-
delete
-
delete
-
put
-
put
public static io.restassured.response.Response put() -
put
-
put
-
post
-
post
public static io.restassured.response.Response post() -
post
-
post
-
post
-
patch
-
patch
public static io.restassured.response.Response patch() -
patch
-
patch
-
patch
-
options
-
options
-
options
-
options
-
options
public static io.restassured.response.Response options() -
head
-
head
-
head
-
head
public static io.restassured.response.Response head() -
head
-
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()
-