Add more objects
This commit is contained in:
parent
2f30eb62ef
commit
cea0a001b8
6 changed files with 158 additions and 3 deletions
|
|
@ -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",
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue