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

Created REST DELETE message (markdown)

James Hillyerd
2013-10-15 17:00:16 -07:00
parent 883b8486ca
commit cd4e08f687

26
REST-DELETE-message.md Normal file

@@ -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"