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

Created REST DELETE mailbox (markdown)

James Hillyerd
2013-10-15 17:02:51 -07:00
parent 1e40a3766a
commit a08c9a5075

25
REST-DELETE-mailbox.md Normal file

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