From 646f971d8bac7671646e4167b71b45b4b609e048 Mon Sep 17 00:00:00 2001 From: kiekerjan Date: Sun, 31 Oct 2021 17:49:26 +0100 Subject: [PATCH] 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. --- api/mailinabox.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/mailinabox.yml b/api/mailinabox.yml index 6e289f30..f3290fb9 100644 --- a/api/mailinabox.yml +++ b/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 ":" 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 ":" responses: 200: