1 KiB
1 KiB
GET /api/v1/user/{id}
Requires an authentication header
Returns a user with id = {id}
Response:
{
"id": "string",
"username": "string",
"email": "string",
"description": "string",
"admin": false,
"registerDate": 0,
"lastLogin": 0
}
GET /api/v1/user/{id}/sessions
Requires an authentication header
Returns all sessions for a user with id = {id}
Response:
{
"sessions": [
{
"id": "string",
"userId": "string"
}
]
}
PATCH /api/v1/user/{id}/email
Requires an authentication header
Request:
{
"email": "string"
}
Updates email for a user with id = {id}
Response:
{
"id": "string",
"email": "string",
}
PATCH /api/v1/user/{id}/description
Requires an authentication header
Request:
{
"description": "string"
}
Updates description for a user with id = {id}
Response:
{
"id": "string",
"description": "string",
}