Package io.quarkiverse.mailpit.test.rest
Class MessagesApi
java.lang.Object
io.quarkiverse.mailpit.test.rest.MessagesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class MessagesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(DeleteRequest ids) Delete messages If no IDs are provided then all messages are deleted.Delete messages If no IDs are provided then all messages are deleted.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) getMessages(Integer start, Integer limit) List messages Returns messages from the mailbox ordered from newest to oldest.getMessagesWithHttpInfo(Integer start, Integer limit) List messages Returns messages from the mailbox ordered from newest to oldest.messagesSummary(String query, Integer start, Integer limit) Search messages Returns the latest messages matching a search.voidmessagesSummary_0(String query) Delete messages by search Deletes messages matching a search.Delete messages by search Deletes messages matching a search.messagesSummaryWithHttpInfo(String query, Integer start, Integer limit) Search messages Returns the latest messages matching a search.voidSet read status If no IDs are provided then all messages are updated.Set read status If no IDs are provided then all messages are updated.
-
Constructor Details
-
MessagesApi
public MessagesApi() -
MessagesApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
delete
Delete messages If no IDs are provided then all messages are deleted.- Parameters:
ids- Database IDs to delete (optional)- Throws:
ApiException- if fails to make API call
-
deleteWithHttpInfo
Delete messages If no IDs are provided then all messages are deleted.- Parameters:
ids- Database IDs to delete (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
getMessages
List messages Returns messages from the mailbox ordered from newest to oldest.- Parameters:
start- Pagination offset (optional, default to 0)limit- Limit results (optional, default to 50)- Returns:
- MessagesSummary
- Throws:
ApiException- if fails to make API call
-
getMessagesWithHttpInfo
public ApiResponse<MessagesSummary> getMessagesWithHttpInfo(Integer start, Integer limit) throws ApiException List messages Returns messages from the mailbox ordered from newest to oldest.- Parameters:
start- Pagination offset (optional, default to 0)limit- Limit results (optional, default to 50)- Returns:
- ApiResponse<MessagesSummary>
- Throws:
ApiException- if fails to make API call
-
messagesSummary
public MessagesSummary messagesSummary(String query, Integer start, Integer limit) throws ApiException Search messages Returns the latest messages matching a search.- Parameters:
query- Search query (required)start- Pagination offset (optional, default to 0)limit- Limit results (optional, default to 50)- Returns:
- MessagesSummary
- Throws:
ApiException- if fails to make API call
-
messagesSummaryWithHttpInfo
public ApiResponse<MessagesSummary> messagesSummaryWithHttpInfo(String query, Integer start, Integer limit) throws ApiException Search messages Returns the latest messages matching a search.- Parameters:
query- Search query (required)start- Pagination offset (optional, default to 0)limit- Limit results (optional, default to 50)- Returns:
- ApiResponse<MessagesSummary>
- Throws:
ApiException- if fails to make API call
-
messagesSummary_0
Delete messages by search Deletes messages matching a search.- Parameters:
query- Search query (required)- Throws:
ApiException- if fails to make API call
-
messagesSummary_0WithHttpInfo
Delete messages by search Deletes messages matching a search.- Parameters:
query- Search query (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
setReadStatus
Set read status If no IDs are provided then all messages are updated.- Parameters:
ids- Database IDs to update (optional)- Throws:
ApiException- if fails to make API call
-
setReadStatusWithHttpInfo
Set read status If no IDs are provided then all messages are updated.- Parameters:
ids- Database IDs to update (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-