Package io.quarkiverse.mailpit.test.rest
Class MessageApi
java.lang.Object
io.quarkiverse.mailpit.test.rest.MessageApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class MessageApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachment(String ID, String partID) Get message attachment This will return the attachment part using the appropriate Content-Type.attachmentWithHttpInfo(String ID, String partID) Get message attachment This will return the attachment part using the appropriate Content-Type.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) Get message headers Returns the message headers as an array.Get message headers Returns the message headers as an array.Get message summary Returns the summary of a message, marking the message as read.Get message summary Returns the summary of a message, marking the message as read.voidGet message source Returns the full email source as plain text.Get message source Returns the full email source as plain text.voidrelease(String ID, ReleaseMessageRequest to) Release message Release a message via a pre-configured external SMTP server..Release message Release a message via a pre-configured external SMTP server..voidGet an attachment image thumbnail This will return a cropped 180x120 JPEG thumbnail of an image attachment.thumbnailWithHttpInfo(String ID, String partID) Get an attachment image thumbnail This will return a cropped 180x120 JPEG thumbnail of an image attachment.
-
Constructor Details
-
MessageApi
public MessageApi() -
MessageApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
attachment
Get message attachment This will return the attachment part using the appropriate Content-Type.- Parameters:
ID- Database ID (required)partID- Attachment part ID (required)- Throws:
ApiException- if fails to make API call
-
attachmentWithHttpInfo
Get message attachment This will return the attachment part using the appropriate Content-Type.- Parameters:
ID- Database ID (required)partID- Attachment part ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
headers
Get message headers Returns the message headers as an array.- Parameters:
ID- Database ID (required)- Returns:
- Map<String, List<String>>
- Throws:
ApiException- if fails to make API call
-
headersWithHttpInfo
Get message headers Returns the message headers as an array.- Parameters:
ID- Database ID (required)- Returns:
- ApiResponse<Map<String, List<String>>>
- Throws:
ApiException- if fails to make API call
-
message
Get message summary Returns the summary of a message, marking the message as read.- Parameters:
ID- Database ID (required)- Returns:
- Message
- Throws:
ApiException- if fails to make API call
-
messageWithHttpInfo
Get message summary Returns the summary of a message, marking the message as read.- Parameters:
ID- Database ID (required)- Returns:
- ApiResponse<Message>
- Throws:
ApiException- if fails to make API call
-
raw
Get message source Returns the full email source as plain text.- Parameters:
ID- Database ID (required)- Throws:
ApiException- if fails to make API call
-
rawWithHttpInfo
Get message source Returns the full email source as plain text.- Parameters:
ID- Database ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
release
Release message Release a message via a pre-configured external SMTP server..- Parameters:
ID- Database ID (required)to- Array of email addresses to release message to (required)- Throws:
ApiException- if fails to make API call
-
releaseWithHttpInfo
public ApiResponse<Void> releaseWithHttpInfo(String ID, ReleaseMessageRequest to) throws ApiException Release message Release a message via a pre-configured external SMTP server..- Parameters:
ID- Database ID (required)to- Array of email addresses to release message to (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
thumbnail
Get an attachment image thumbnail This will return a cropped 180x120 JPEG thumbnail of an image attachment. If the image is smaller than 180x120 then the image is padded. If the attachment is not an image then a blank image is returned.- Parameters:
ID- Database ID (required)partID- Attachment part ID (required)- Throws:
ApiException- if fails to make API call
-
thumbnailWithHttpInfo
Get an attachment image thumbnail This will return a cropped 180x120 JPEG thumbnail of an image attachment. If the image is smaller than 180x120 then the image is padded. If the attachment is not an image then a blank image is returned.- Parameters:
ID- Database ID (required)partID- Attachment part ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-