From a221a6c7675bd729d25da807c519da3664755d87 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Fri, 5 Jan 2018 16:28:17 +0100 Subject: [PATCH] Updated API Sessions (markdown) --- API-Sessions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API-Sessions.md b/API-Sessions.md index 7125718..6e615c5 100644 --- a/API-Sessions.md +++ b/API-Sessions.md @@ -4,7 +4,7 @@ Sessions are used to authenticate subsequent request from a client. For the crea Session information can be stored in PHP APCu for persistence between calls. While this approach requires the PHP-APCu extension to be present it does not rely on the PHP Session and is therefore also possible for clients which do not handle cookies. ## Add a new session -`POST /api/sessions` +`POST /sessions` The provided token should be 64 byte (512-bit) of cryptographic strong entropy, encoded with base64. @@ -25,4 +25,4 @@ The provided token should be 64 byte (512-bit) of cryptographic strong entropy, ``` ## Delete Session (Log out) -`DELETE /api/sessions/{token}` \ No newline at end of file +`DELETE /sessions/{token}` \ No newline at end of file