mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-09 17:37:46 +08:00
allow uploading structured messages
This commit is contained in:
parent
3235b42b4a
commit
27f0170e39
5 changed files with 16 additions and 10 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
define({
"name": "wildduck",
"version": "1.0.0",
"description": "WildDuck API docs",
"title": "WildDuck API",
"url": "https://api.wildduck.email",
"sampleUrl": false,
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-11-12T11:31:08.738Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
});
|
||||
define({
"name": "wildduck",
"version": "1.0.0",
"description": "WildDuck API docs",
"title": "WildDuck API",
"url": "https://api.wildduck.email",
"sampleUrl": false,
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-11-12T11:32:26.871Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
{
"name": "wildduck",
"version": "1.0.0",
"description": "WildDuck API docs",
"title": "WildDuck API",
"url": "https://api.wildduck.email",
"sampleUrl": false,
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-11-12T11:31:08.738Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
}
|
||||
{
"name": "wildduck",
"version": "1.0.0",
"description": "WildDuck API docs",
"title": "WildDuck API",
"url": "https://api.wildduck.email",
"sampleUrl": false,
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-11-12T11:32:26.871Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
}
|
||||
|
|
|
@ -1910,12 +1910,18 @@ module.exports = (db, server, messageHandler) => {
|
|||
* Example message'
|
||||
* @apiExample {curl} Upload a Message Structure:
|
||||
* curl -i -XPOST "http://localhost:8080/users/5a2f9ca57308fc3a6f5f811d/mailboxes/5a2f9ca57308fc3a6f5f811e/messages" \
|
||||
* -H 'Content-type: message/rfc822' \
|
||||
* -d 'From: sender@example.com
|
||||
* To: recipient@example.com
|
||||
* Subject: hello world!
|
||||
*
|
||||
* Example message'
|
||||
* -H 'Content-type: application/json' \
|
||||
* -d '{
|
||||
* "from": {
|
||||
* "name": "sender name",
|
||||
* "address": "sender@example.com"
|
||||
* },
|
||||
* "to": [{
|
||||
* "address": "andris@ethereal.email"
|
||||
* }],
|
||||
* "subject": "Hello world!",
|
||||
* "text": "Test message"
|
||||
* }'
|
||||
*
|
||||
* @apiSuccessExample {json} Forward Response:
|
||||
* HTTP/1.1 200 OK
|
||||
|
|
Loading…
Reference in a new issue