From cd4e08f6878d7271153f22b46707174a5ac176f6 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Tue, 15 Oct 2013 17:00:16 -0700 Subject: [PATCH] Created REST DELETE message (markdown) --- REST-DELETE-message.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 REST-DELETE-message.md diff --git a/REST-DELETE-message.md b/REST-DELETE-message.md new file mode 100644 index 0000000..5257efe --- /dev/null +++ b/REST-DELETE-message.md @@ -0,0 +1,26 @@ +### URI + +`DELETE /mailbox/{name}/{id}` + +### Params + +* `name` - name of the mailbox the message belongs to +* `id` - identifier of the message to delete + +### Output + +JSON encoded string "OK" + +### Example + +Request: `curl -i -H "Accept: application/json" -X DELETE http://localhost:9000/mailbox/swaks/20131015T161202-0000` + +Response: + + HTTP/1.1 200 OK + Content-Type: application/json; charset=utf-8 + Expires: -1 + Content-Length: 5 + Date: Tue, 15 Oct 2013 23:58:13 GMT + + "OK"