1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Created REST GET message (markdown)

James Hillyerd
2013-10-16 16:56:47 -07:00
parent bf995d2701
commit 9480446f13

37
REST-GET-message.md Normal file

@@ -0,0 +1,37 @@
[Back to REST API](https://github.com/jhillyerd/inbucket/wiki/REST-API)
Retrieve message body
### URI
`GET /mailbox/{name}/{id}`
### Params
* `name` - name of the mailbox the message belongs to
* `id` - identifier of the message to retrieve
### Output
The Inbucket version of the message headers, plus the Text and HTML portions of the MIME body of the email.
### Example
Request: `curl -i -H "Accept: application/json" http://localhost:9000/mailbox/swaks/20131015T161202-0000`
Response:
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 264
Date: Tue, 15 Oct 2013 23:52:09 GMT
Date: Tue, 15 Oct 2013 16:12:02 -0700
To: swaks@inbucket.local
From: jamehi03@server.com
Subject: Swaks Plain Text
X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
This is a test mailing.
This should be clickable: http://google.com/