Users¶
Get all User¶
GET /user/list
Response:
Status: 200 OK
----
[
{
"id": "509436247274160129",
"email": "john@example.com",
"created_at": ""2019-12-16T08:12:27"
}
]
Get a single user¶
GET /user/list/:id
Query Params:
Name | Type | Description |
---|---|---|
id | int | The user id of the user |
string | The email of the user |
Response:
Status: 200 OK
----
{
"id": "509436247274160129",
"email": "john@example.com",
"created_at": ""2019-12-16T08:12:27"
}
Create user¶
POST /user/add
Request body:
Name | Type | Description |
---|---|---|
string | The email of the user |
Response:
Status: 201 CREATED
----
{
"id": "509436247274160129",
"email": "john@example.com",
"created_at": "2019-12-05 16:26:44.757773"
}