Rework patches

This commit is contained in:
Aslan 2025-12-27 00:10:27 +01:00
parent 6129941676
commit c2c6c7d584

View file

@ -18,25 +18,6 @@ Returns a user with id = {id}
} }
``` ```
## GET /api/v1/user/{id}/sessions
_Requires an authorization header_
Returns all sessions for a user with id = {id}
### Response:
```json
{
"sessions": [
{
"id": "string",
"userId": "string"
}
]
}
```
## PATCH /api/v1/user/{id} ## PATCH /api/v1/user/{id}
_Requires an authorization header_ _Requires an authorization header_
@ -61,3 +42,22 @@ Updates a user with id = {id}
"description": "string" "description": "string"
} }
``` ```
## GET /api/v1/user/{id}/sessions
_Requires an authorization header_
Returns all sessions for a user with id = {id}
### Response:
```json
{
"sessions": [
{
"id": "string",
"userId": "string"
}
]
}
```