Update mailinabox.yml (#2054)

The examples for login and logout use GET instead of POST. GET gives me an error when using it, while POST seems to work.
pull/2067/head
kiekerjan 2 years ago committed by GitHub
parent 86067be142
commit 646f971d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      api/mailinabox.yml

@ -71,7 +71,7 @@ paths:
x-codeSamples:
- lang: curl
source: |
curl -X GET "https://{host}/admin/login" \
curl -X POST "https://{host}/admin/login" \
-u "<email>:<password>"
responses:
200:
@ -103,7 +103,7 @@ paths:
x-codeSamples:
- lang: curl
source: |
curl -X GET "https://{host}/admin/logout" \
curl -X POST "https://{host}/admin/logout" \
-u "<email>:<session_key>"
responses:
200:

Loading…
Cancel
Save