mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
Created REST DELETE mailbox (markdown)
25
REST-DELETE-mailbox.md
Normal file
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"
|
||||||
Reference in New Issue
Block a user