30 lines
380 B
Markdown
30 lines
380 B
Markdown
## GET /api/v1/session/{id}
|
|
|
|
_Requires an authorization header_
|
|
|
|
Returns a session with id = {id}
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"id": "string",
|
|
"userId": "string",
|
|
"creationDate": "number"
|
|
}
|
|
```
|
|
|
|
## DELETE /api/v1/session/{id}
|
|
|
|
_Requires an authorization header_
|
|
|
|
Revokes a session with id = {id}
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"id": "string",
|
|
"userId": "string"
|
|
}
|
|
```
|