From 2d1ad1269d18b0af316bce9215cbc0cc31ed3b24 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Fri, 5 Jan 2018 16:39:31 +0100 Subject: [PATCH] Updated API Sessions (markdown) --- API-Sessions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/API-Sessions.md b/API-Sessions.md index 6e615c5..afb5bce 100644 --- a/API-Sessions.md +++ b/API-Sessions.md @@ -17,6 +17,11 @@ The provided token should be 64 byte (512-bit) of cryptographic strong entropy, ``` ### Response +| code | result | +| --- | --- | +| 201 | Everything okay, session was created | +| 403 | User credentials are not correct | + ```json { "username": "foo", @@ -25,4 +30,9 @@ The provided token should be 64 byte (512-bit) of cryptographic strong entropy, ``` ## Delete Session (Log out) +| code | result | +| --- | --- | +| 204 | Everything okay, therefore the answer has not content | +| 404 | Session was not found | + `DELETE /sessions/{token}` \ No newline at end of file