From a08c9a50754cdbdeea2e5f95d8ca447a8f60fded Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Tue, 15 Oct 2013 17:02:51 -0700 Subject: [PATCH] Created REST DELETE mailbox (markdown) --- REST-DELETE-mailbox.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 REST-DELETE-mailbox.md diff --git a/REST-DELETE-mailbox.md b/REST-DELETE-mailbox.md new file mode 100644 index 0000000..1515faa --- /dev/null +++ b/REST-DELETE-mailbox.md @@ -0,0 +1,25 @@ +### URI + +`DELETE /mailbox/{name}` + +### Params + +* `name` - name of the mailbox to purge + +### Output + +JSON encoded string "OK" + +### Example + +Request: `curl -i -H "Accept: application/json" -X DELETE http://localhost:9000/mailbox/swaks` + +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"