Formatting; Creation dates
This commit is contained in:
parent
d1685fde77
commit
a85fc8a49d
7 changed files with 94 additions and 41 deletions
|
|
@ -1,9 +1,11 @@
|
|||
## GET /api/v1/user/{id}
|
||||
*Requires an authentication header*
|
||||
|
||||
_Requires an authentication header_
|
||||
|
||||
Returns a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
|
|
@ -17,11 +19,13 @@ Returns a user with id = {id}
|
|||
```
|
||||
|
||||
## GET /api/v1/user/{id}/sessions
|
||||
*Requires an authentication header*
|
||||
|
||||
_Requires an authentication header_
|
||||
|
||||
Returns all sessions for a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"sessions": [
|
||||
|
|
@ -34,9 +38,11 @@ Returns all sessions for a user with id = {id}
|
|||
```
|
||||
|
||||
## PATCH /api/v1/user/{id}/email
|
||||
*Requires an authentication header*
|
||||
|
||||
_Requires an authentication header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"email": "string"
|
||||
|
|
@ -46,17 +52,20 @@ Returns all sessions for a user with id = {id}
|
|||
Updates email for a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"email": "string",
|
||||
"email": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/user/{id}/description
|
||||
*Requires an authentication header*
|
||||
|
||||
_Requires an authentication header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "string"
|
||||
|
|
@ -66,9 +75,10 @@ Updates email for a user with id = {id}
|
|||
Updates description for a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"description": "string",
|
||||
"description": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue