Public
Documentation Settings

Sinbad-Test

Users

POSTCREATE user

http://localhost:3000/users/create
Bodyraw (json)
json
{
    "fullName": "Christopher Hitchens",
    "password": "hitcslap123",
    "email": "christopher.hitch@mail.com"
}
Example Request
curl
curl --location 'http://localhost:3000/users/create' \
--data-raw '{
    "fullName": "Christopher Hitchens",
    "password": "hitcslap123",
    "email": "christopher.hitch@mail.com"
}'
200 OK
Example Response
json
{
  "statusCode": 201,
  "message": "Christopher Hitchens successfully created"
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

72

ETag

W/"48-0XstjExyILMRoJeJWMKpZ8NwZvo"

Date

Wed, 18 Nov 2020 03:15:04 GMT

Connection

keep-alive

GETGET user by ID

http://localhost:3000/users/f1871905-de78-4813-b0f9-9ae3cb1e7fe6
Example Request
curl
curl --location 'http://localhost:3000/users/f1871905-de78-4813-b0f9-9ae3cb1e7fe6'
200 OK
Example Response
json
{
  "statusCode": 200,
  "data": {
    "userId": "f1871905-de78-4813-b0f9-9ae3cb1e7fe6",
    "fullName": "C. Hitchens",
    "email": "c.hitchens@mail.com",
    "password": "hitchslap101"
  }
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

156

ETag

W/"9c-63e8k9RXG81rcAjbh8Xc8IT+9dU"

Date

Wed, 18 Nov 2020 06:06:51 GMT

Connection

keep-alive

GETGET all users

http://localhost:3000/users
Example Request
curl
curl --location 'http://localhost:3000/users'
200 OK
Example Response
json
{
  "statusCode": 200,
  "data": [
    {
      "userId": "f1871905-de78-4813-b0f9-9ae3cb1e7fe6",
      "fullName": "C. Hitchens",
      "email": "c.hitchens@mail.com",
      "password": "hitchslap101"
    },
    {
      "userId": "354b5cd2-b33b-41b5-b559-9c74afd07b1d",
      "fullName": "Richard feynman",
      "email": "dick.feynman@mail.com",
      "password": "physics101"
    }
  ]
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

293

ETag

W/"125-V9SBs7XEK5Jap5xIZHRgHPy9yM4"

Date

Wed, 18 Nov 2020 06:05:31 GMT

Connection

keep-alive

PATCHUPDATE user

http://localhost:3000/users/update/f1871905-de78-4813-b0f9-9ae3cb1e7fe6
Bodyraw (json)
json
{
    "fullName": "C. Hitchens",
    "password": "hitchslap101",
    "email": "c.hitchens@mail.com"
}
Example Request
curl
curl --location --request PATCH 'http://localhost:3000/users/update/f1871905-de78-4813-b0f9-9ae3cb1e7fe6' \
--data-raw '{
    "fullName": "C. Hitchens",
    "password": "hitchslap101",
    "email": "c.hitchens@mail.com"
}'
200 OK
Example Response
json
{
  "statusCode": 200,
  "data": {
    "userId": "f1871905-de78-4813-b0f9-9ae3cb1e7fe6",
    "fullName": "C. Hitchens",
    "email": "c.hitchens@mail.com",
    "password": "hitchslap101"
  }
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

156

ETag

W/"9c-63e8k9RXG81rcAjbh8Xc8IT+9dU"

Date

Wed, 18 Nov 2020 06:04:22 GMT

Connection

keep-alive