mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Update mailinabox.yml
The examples for login and logout use GET instead of POST. GET gives me an error when using it, while POST seems to work.
This commit is contained in:
parent
86067be142
commit
eb7f1bbf5b
@ -71,7 +71,7 @@ paths:
|
|||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: curl
|
- lang: curl
|
||||||
source: |
|
source: |
|
||||||
curl -X GET "https://{host}/admin/login" \
|
curl -X POST "https://{host}/admin/login" \
|
||||||
-u "<email>:<password>"
|
-u "<email>:<password>"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
@ -103,7 +103,7 @@ paths:
|
|||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: curl
|
- lang: curl
|
||||||
source: |
|
source: |
|
||||||
curl -X GET "https://{host}/admin/logout" \
|
curl -X POST "https://{host}/admin/logout" \
|
||||||
-u "<email>:<session_key>"
|
-u "<email>:<session_key>"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
Loading…
Reference in New Issue
Block a user