From 15af543228c3aea18657ebee91a87485dad99f82 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Thu, 25 Feb 2016 19:27:37 -0800 Subject: [PATCH] Add API v1 --- REST-API.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/REST-API.md b/REST-API.md index ca02d9f..efd8908 100644 --- a/REST-API.md +++ b/REST-API.md @@ -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) \ No newline at end of file +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}`