đĢ Execute Request
Once you have composed your API request, you can execute it using class ApiActions
and method withRequest
.
tip
Check out complete documentation for ApiActions.
Exampleâ
import static io.github.boykaframework.actions.api.ApiActions.withRequest;
. . .
// Using request created in previous example.
final ApiResponse response = withRequest (request).execute ();
API Response classâ
The withRequest
method will return ApiResponse
class object which contains methods to verify the response body and status code.
tip
Check out complete documentation for ApiResponse.