Updated API Sessions (markdown)

Lukas Metzger 2018-01-05 16:28:17 +01:00
parent 7ef74e79a5
commit a221a6c767

@ -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}`
`DELETE /sessions/{token}`