Class RestRequests

java.lang.Object
net.serenitybdd.rest.RestRequests

public class RestRequests extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.restassured.response.Response
     
    static io.restassured.response.Response
    delete(String path, Object... pathParams)
     
    static io.restassured.response.Response
    delete(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    delete(URI uri)
     
    static io.restassured.response.Response
    delete(URL url)
     
    static io.restassured.specification.ResponseSpecification
     
    static io.restassured.response.Response
    get()
     
    static io.restassured.response.Response
    get(String path, Object... pathParams)
     
    static io.restassured.response.Response
    get(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    get(URI uri)
     
    static io.restassured.response.Response
    get(URL url)
     
    static io.restassured.specification.RequestSpecification
     
    static io.restassured.specification.RequestSpecification
    given(io.restassured.specification.RequestSpecification requestSpecification)
     
    static io.restassured.specification.RequestSender
    given(io.restassured.specification.RequestSpecification request, io.restassured.specification.ResponseSpecification response)
     
    static io.restassured.response.Response
     
    static io.restassured.response.Response
    head(String path, Object... pathParams)
     
    static io.restassured.response.Response
    head(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    head(URI uri)
     
    static io.restassured.response.Response
    head(URL url)
     
    static io.restassured.response.Response
     
    static io.restassured.response.Response
    options(String path, Object... pathParams)
     
    static io.restassured.response.Response
    options(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    options(URI uri)
     
    static io.restassured.response.Response
    options(URL url)
     
    static io.restassured.response.Response
     
    static io.restassured.response.Response
    patch(String path, Object... pathParams)
     
    static io.restassured.response.Response
    patch(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    patch(URI uri)
     
    static io.restassured.response.Response
    patch(URL url)
     
    static io.restassured.response.Response
     
    static io.restassured.response.Response
    post(String path, Object... pathParams)
     
    static io.restassured.response.Response
    post(String path, Map<String,?> pathParams)
     
    static io.restassured.response.Response
    post(URI uri)
     
    static io.restassured.response.Response
    post(URL url)
     
    static io.restassured.response.Response
    put()
     
    static io.restassured.response.Response
    put(String path, Object... pathParams)
     
    static io.restassured.response.Response
    put(URI uri)
     
    static io.restassured.response.Response
    put(URL url)
     
    static io.restassured.specification.RequestSender
     
    static io.restassured.specification.RequestSpecification
     

    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(String path, Map<String,?> pathParams)
    • get

      public static io.restassured.response.Response get(String path, Object... pathParams)
    • get

      public static io.restassured.response.Response get(URI uri)
    • get

      public static io.restassured.response.Response get(URL url)
    • delete

      public static io.restassured.response.Response delete(String path, Object... pathParams)
    • delete

      public static io.restassured.response.Response delete()
    • delete

      public static io.restassured.response.Response delete(URI uri)
    • delete

      public static io.restassured.response.Response delete(URL url)
    • delete

      public static io.restassured.response.Response delete(String path, Map<String,?> pathParams)
    • put

      public static io.restassured.response.Response put(URL url)
    • put

      public static io.restassured.response.Response put()
    • put

      public static io.restassured.response.Response put(String path, Object... pathParams)
    • put

      public static io.restassured.response.Response put(URI uri)
    • post

      public static io.restassured.response.Response post(URI uri)
    • post

      public static io.restassured.response.Response post()
    • post

      public static io.restassured.response.Response post(URL url)
    • post

      public static io.restassured.response.Response post(String path, Map<String,?> pathParams)
    • post

      public static io.restassured.response.Response post(String path, Object... pathParams)
    • patch

      public static io.restassured.response.Response patch(String path, Object... pathParams)
    • patch

      public static io.restassured.response.Response patch()
    • patch

      public static io.restassured.response.Response patch(URL url)
    • patch

      public static io.restassured.response.Response patch(URI uri)
    • patch

      public static io.restassured.response.Response patch(String path, Map<String,?> pathParams)
    • options

      public static io.restassured.response.Response options(String path, Map<String,?> pathParams)
    • options

      public static io.restassured.response.Response options(String path, Object... pathParams)
    • options

      public static io.restassured.response.Response options(URI uri)
    • options

      public static io.restassured.response.Response options(URL url)
    • options

      public static io.restassured.response.Response options()
    • head

      public static io.restassured.response.Response head(URL url)
    • head

      public static io.restassured.response.Response head(String path, Map<String,?> pathParams)
    • head

      public static io.restassured.response.Response head(String path, Object... pathParams)
    • head

      public static io.restassured.response.Response head()
    • head

      public static io.restassured.response.Response head(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()