From ce0f74cbba69fa914475d931c891c765c93e2a82 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Tue, 15 Oct 2013 16:34:02 -0700 Subject: [PATCH] Created REST (markdown) --- REST.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 REST.md diff --git a/REST.md b/REST.md new file mode 100644 index 0000000..1c0dc58 --- /dev/null +++ b/REST.md @@ -0,0 +1,20 @@ +# Inbucket REST API + +## GET /mailbox/{name} + +### Params + +* name: Name of the mailbox to list the contents of + +### Output + +A JSON array of message header maps, containing the following fields: +* Mailbox - name of the mailbox the message belongs to +* Id - message identifier, will be unique for this mailbox, but not across mailboxes +* From - message sender +* Subject - message subject line +* Date - date message was received (not the date specified by SMTP headers) in [ISO 8601][http://en.wikipedia.org/wiki/ISO_8601] format. +* Size - size of headers + message in bytes + +### Example +