-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
164 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,40 @@ import "github.com/axllent/mailpit/internal/stats" | |
|
||
// These structs are for the purpose of defining swagger HTTP parameters & responses | ||
|
||
// Send request | ||
// swagger:model sendMessageRequestBody | ||
type sendMessageRequestBody struct { | ||
// String of email address to send the message from | ||
// | ||
// required: true | ||
// example: "[email protected]" | ||
From string `json:"from"` | ||
|
||
// Array of email addresses to send the message to | ||
// | ||
// required: true | ||
// example: ["[email protected]", "[email protected]"] | ||
To []string `json:"to"` | ||
|
||
// String of email subject | ||
// | ||
// required: true | ||
// example: "Hello" | ||
Subject string `json:"subject"` | ||
|
||
// String of email HTML body | ||
// | ||
// required: true | ||
// example: "<html><body>Hello</body></html>" | ||
BodyHTML string `json:"bodyHtml"` | ||
|
||
// String of email text body | ||
// | ||
// required: true | ||
// example: "Hello" | ||
BodyText string `json:"bodyText"` | ||
} | ||
|
||
// Application information | ||
// swagger:response InfoResponse | ||
type infoResponse struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters