Uses of Class
net.serenitybdd.screenplay.playwright.interactions.api.APIRequest
Packages that use APIRequest
-
Uses of APIRequest in net.serenitybdd.screenplay.playwright.interactions.api
Methods in net.serenitybdd.screenplay.playwright.interactions.api that return APIRequestModifier and TypeMethodDescriptionstatic APIRequestCreate a DELETE request.APIRequest.failOnStatusCode(boolean fail) Configure whether to throw an exception on non-2xx status codes.static APIRequestCreate a GET request.static APIRequestCreate a HEAD request.static APIRequestCreate a PATCH request.static APIRequestCreate a POST request.static APIRequestCreate a PUT request.static APIRequestCreate a request with a custom HTTP method.APIRequest.withBody(byte[] body) Set the request body as bytes.Set the request body as a string.APIRequest.withContentType(String contentType) Set the Content-Type header.APIRequest.withHeader(String name, String value) Add a header to the request.APIRequest.withHeaders(Map<String, String> headers) Add multiple headers to the request.APIRequest.withJsonBody(Object jsonBody) Set the request body as a JSON object.APIRequest.withQueryParam(String name, String value) Add a query parameter to the request URL.APIRequest.withQueryParams(Map<String, String> params) Add multiple query parameters to the request URL.APIRequest.withTimeout(int timeoutMs) Set the request timeout in milliseconds.