nexlink/docs/api/session.md

25 lines
349 B
Markdown

## GET /api/v1/session/{id}
*Requires an authentication header*
Returns a session with id = {id}
### Response:
```json
{
"id": "string",
"userId": "string"
}
```
## DELETE /api/v1/session/{id}
*Requires an authentication header*
Revokes a session with id = {id}
### Response:
```json
{
"id": "string",
"userId": "string",
}
```