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.Response delete()  
    static io.restassured.response.Response delete​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response delete​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response delete​(java.net.URI uri)  
    static io.restassured.response.Response delete​(java.net.URL url)  
    static io.restassured.specification.ResponseSpecification expect()  
    static io.restassured.response.Response get()  
    static io.restassured.response.Response get​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response get​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response get​(java.net.URI uri)  
    static io.restassured.response.Response get​(java.net.URL url)  
    static io.restassured.specification.RequestSpecification given()  
    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 head()  
    static io.restassured.response.Response head​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response head​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response head​(java.net.URI uri)  
    static io.restassured.response.Response head​(java.net.URL url)  
    static io.restassured.response.Response options()  
    static io.restassured.response.Response options​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response options​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response options​(java.net.URI uri)  
    static io.restassured.response.Response options​(java.net.URL url)  
    static io.restassured.response.Response patch()  
    static io.restassured.response.Response patch​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response patch​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response patch​(java.net.URI uri)  
    static io.restassured.response.Response patch​(java.net.URL url)  
    static io.restassured.response.Response post()  
    static io.restassured.response.Response post​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response post​(java.lang.String path, java.util.Map<java.lang.String,​?> pathParams)  
    static io.restassured.response.Response post​(java.net.URI uri)  
    static io.restassured.response.Response post​(java.net.URL url)  
    static io.restassured.response.Response put()  
    static io.restassured.response.Response put​(java.lang.String path, java.lang.Object... pathParams)  
    static io.restassured.response.Response put​(java.net.URI uri)  
    static io.restassured.response.Response put​(java.net.URL url)  
    static io.restassured.specification.RequestSender when()  
    static io.restassured.specification.RequestSpecification with()  

    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()