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

Add API v1

James Hillyerd
2016-02-25 19:27:37 -08:00
parent bcc9b78009
commit 15af543228

@@ -1,5 +1,15 @@
* List Mailbox Contents: [GET /mailbox/{name}](https://github.com/jhillyerd/inbucket/wiki/REST-GET-mailbox)
* Get Message: [GET /mailbox/{name}/{id}](https://github.com/jhillyerd/inbucket/wiki/REST-GET-message)
* Get Message Source: [GET /mailbox/{name}/{id}/source](https://github.com/jhillyerd/inbucket/wiki/REST-GET-message-source)
* Delete Message: [DELETE /mailbox/{name}/{id}](https://github.com/jhillyerd/inbucket/wiki/REST-DELETE-message)
* Purge Mailbox Contents: [DELETE /mailbox/{name}](https://github.com/jhillyerd/inbucket/wiki/REST-DELETE-mailbox)
API v1:
* List Mailbox Contents: [GET /api/v1/mailbox/{name}](https://github.com/jhillyerd/inbucket/wiki/REST-GET-mailbox)
* Get Message: [GET /api/v1/mailbox/{name}/{id}](https://github.com/jhillyerd/inbucket/wiki/REST-GET-message)
* Get Message Source: [GET /api/v1/mailbox/{name}/{id}/source](https://github.com/jhillyerd/inbucket/wiki/REST-GET-message-source)
* Delete Message: [DELETE /api/v1/mailbox/{name}/{id}](https://github.com/jhillyerd/inbucket/wiki/REST-DELETE-message)
* Purge Mailbox Contents: [DELETE /api/v1/mailbox/{name}](https://github.com/jhillyerd/inbucket/wiki/REST-DELETE-mailbox)
Legacy API (will be removed in Inbucket 1.2):
* List Mailbox Contents: `GET /mailbox/{name}`
* Get Message: `GET /mailbox/{name}/{id}`
* Get Message Source: `GET /mailbox/{name}/{id}/source`
* Delete Message: `DELETE /mailbox/{name}/{id}`
* Purge Mailbox Contents: `DELETE /mailbox/{name}`