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
email 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
email 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"
 }

Edit user

PUT /user/edit/:id

Request body:

Name Type Description
email string The email of the user

Response:

Status: 200 OK
----
 {
  "email": "john@example.com",
 }

Delete user

DELETE /user/delete/:id

Response:

Status: 204 NO CONTENT