Add more objects

This commit is contained in:
Aslan 2025-12-23 14:45:41 -05:00
parent 2f30eb62ef
commit cea0a001b8
6 changed files with 158 additions and 3 deletions

View file

@ -1,5 +1,6 @@
## GET /api/v1/user/{id}
Returns a user object with id = {id}
*Requires authentication header*
Returns a user with id = {id}
### Response:
```json
@ -13,3 +14,57 @@ Returns a user object with id = {id}
"lastLogin": 0
}
```
## GET /api/v1/user/{id}/sessions
*Requires authentication header*
Returns all sessions for a user with id = {id}
### Response:
```json
{
"sessions": [
{
"id": "string",
"userId": "string"
}
]
}
```
## POST /api/v1/user/{id}/email
*Requires authentication header*
### Request:
```json
{
"email": "string"
}
```
Updates email for a user with id = {id}
### Response:
```json
{
"id": "string",
"email": "string",
}
```
## POST /api/v1/user/{id}/description
*Requires authentication header*
### Request:
```json
{
"description": "string"
}
```
Updates description for a user with id = {id}
### Response:
```json
{
"id": "string",
"description": "string",
}
```