Interface ApiInt
- All Known Implementing Classes:
Api
public interface ApiInt
Interface defines methods for facilitating helper interactions and assertions.
Validates that all required methods are implemented.
-
Method Summary
Modifier and TypeMethodDescriptionsendDelete(String path) Send DELETE request without bodysendDelete(String path, Object body) Send DELETE request with bodySend GET requestSend HEAD requestsendOptions(String path) Send OPTIONS requestSend PATCH request with bodySend POST request without bodySend POST request with bodySend PUT request without bodySend PUT request with body
-
Method Details
-
sendGet
Send GET request- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-
sendHead
Send HEAD request- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-
sendOptions
Send OPTIONS request- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-
sendPost
Send POST request with body- Parameters:
path- String with path (/api/user1)body- String with body- Returns:
AssertableResponse
-
sendPost
Send POST request without body- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-
sendPut
Send PUT request with body- Parameters:
path- String with path (/api/user1)body- String with body- Returns:
AssertableResponse
-
sendPut
Send PUT request without body- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-
sendPatch
Send PATCH request with body- Parameters:
path- String with path (/api/user1)body- String with body- Returns:
AssertableResponse
-
sendDelete
Send DELETE request with body- Parameters:
path- String with path (/api/user1)body- String with body- Returns:
AssertableResponse
-
sendDelete
Send DELETE request without body- Parameters:
path- String with path (/api/user1)- Returns:
AssertableResponse
-