3
0
corteza/api/compose/spec/notification.json
2019-05-24 12:46:30 +02:00

58 lines
1.3 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"
}
]
}
}
]
}