Updated API Sessions (markdown)
parent
2c9219bbe9
commit
2d1ad1269d
|
@ -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}`
|
Loading…
Reference in a new issue