mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
Update docs to refer to correct /api/v1 URL.
This commit is contained in:
parent
36a5728c5d
commit
a418b35649
1 changed files with 8 additions and 8 deletions
16
APIv1.md
16
APIv1.md
|
@ -3,39 +3,39 @@ Go-MailHog API v1
|
||||||
|
|
||||||
The v1 API is a RESTful HTTP JSON API.
|
The v1 API is a RESTful HTTP JSON API.
|
||||||
|
|
||||||
### GET /v1/api/events
|
### GET /api/v1/events
|
||||||
|
|
||||||
Streams new messages using EventSource and chunked encoding
|
Streams new messages using EventSource and chunked encoding
|
||||||
|
|
||||||
### GET /v1/api/messages
|
### GET /api/v1/messages
|
||||||
|
|
||||||
Lists all messages excluding message content
|
Lists all messages excluding message content
|
||||||
|
|
||||||
### DELETE /v1/api/messages
|
### DELETE /api/v1/messages
|
||||||
|
|
||||||
Deletes all messages
|
Deletes all messages
|
||||||
|
|
||||||
Returns a ```200``` response code if message deletion was successful.
|
Returns a ```200``` response code if message deletion was successful.
|
||||||
|
|
||||||
### GET /v1/api/messages/{ message_id }
|
### GET /api/v1/messages/{ message_id }
|
||||||
|
|
||||||
Returns an individual message including message content
|
Returns an individual message including message content
|
||||||
|
|
||||||
### DELETE /v1/api/messages/{ message_id }
|
### DELETE /api/v1/messages/{ message_id }
|
||||||
|
|
||||||
Delete an individual message
|
Delete an individual message
|
||||||
|
|
||||||
Returns a ```200``` response code if message deletion was successful.
|
Returns a ```200``` response code if message deletion was successful.
|
||||||
|
|
||||||
### GET /v1/api/messages/{ message_id }/download
|
### GET /api/v1/messages/{ message_id }/download
|
||||||
|
|
||||||
Download the complete message
|
Download the complete message
|
||||||
|
|
||||||
### GET /v1/api/messages/{ message_id }/mime/part/{ part_index }/download
|
### GET /api/v1/messages/{ message_id }/mime/part/{ part_index }/download
|
||||||
|
|
||||||
Download a MIME part
|
Download a MIME part
|
||||||
|
|
||||||
### POST /v1/api/messages/{ message_id }/release
|
### POST /api/v1/messages/{ message_id }/release
|
||||||
|
|
||||||
Release the message to an SMTP server
|
Release the message to an SMTP server
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue