3️⃣ Execute API 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.
info
Check out complete documentation for ApiResponse.