diff --git a/REST-GET-message.md b/REST-GET-message.md index a5a1a9e..81c36de 100644 --- a/REST-GET-message.md +++ b/REST-GET-message.md @@ -16,6 +16,7 @@ Retrieve message body * The Inbucket version of the message headers (same as returned by [GET /api/v1/mailbox/{name}](https://github.com/jhillyerd/inbucket/wiki/REST-GET-mailbox)) * The parsed SMTP headers (not converted to UTF-8) * The decoded Text and HTML portions of the MIME body of the email +* A list of attachments (coming in 1.2.0) ### Example @@ -59,5 +60,14 @@ Response: (JSON reformatted for readability) "To": [ "swaks@inbucket.local" ] - } + }, + "attachments": [ + { + "filename": "favicon.png", + "content-type": "image/png", + "download-link": "http://localhost:9000/mailbox/dattach/swaks/20161231T045513-0004/0/favicon.png", + "view-link": "http://localhost:9000/mailbox/vattach/swaks/20161231T045513-0004/0/favicon.png", + "md5": "a72a7565b6b6587ac15fc35746307d0e" + } + ] } \ No newline at end of file