64 lines
1.5 KiB
JSON
64 lines
1.5 KiB
JSON
{
|
|
"Title": "Notifications",
|
|
"Description": "Compose Notifications",
|
|
"Interface": "Notification",
|
|
"Struct": [
|
|
{
|
|
"imports": [
|
|
"sqlxTypes github.com/jmoiron/sqlx/types"
|
|
]
|
|
}
|
|
],
|
|
"Parameters": null,
|
|
"Protocol": "",
|
|
"Authentication": [],
|
|
"Path": "/notification",
|
|
"APIs": [
|
|
{
|
|
"Name": "email/send",
|
|
"Method": "POST",
|
|
"Title": "Send email from the Compose",
|
|
"Path": "/email",
|
|
"Parameters": {
|
|
"post": [
|
|
{
|
|
"name": "to",
|
|
"required": true,
|
|
"title": "Email addresses",
|
|
"type": "[]string"
|
|
},
|
|
{
|
|
"name": "cc",
|
|
"required": false,
|
|
"title": "Email addresses",
|
|
"type": "[]string"
|
|
},
|
|
{
|
|
"name": "replyTo",
|
|
"required": false,
|
|
"title": "Email address in reply-to field",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "subject ",
|
|
"required": false,
|
|
"title": "Email subject",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "content",
|
|
"required": true,
|
|
"title": "Message content",
|
|
"type": "sqlxTypes.JSONText"
|
|
},
|
|
{
|
|
"name": "remoteAttachments",
|
|
"required": false,
|
|
"title": "Remote files to attach to the email",
|
|
"type": "[]string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |