Public
Documentation Settings

Lamorak

Food Delivery REST API, MySQL TypeORM Express Node TypeScript

User

GETShow All User

http://localhost:3002/api/users/
Example Request
curl
curl --location 'http://localhost:3002/api/users/'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETShow Specific User

http://localhost:3002/api/users/d07f6de9-47fa-4c68-9128-846e123c9dd9
Example Request
curl
curl --location 'http://localhost:3002/api/users/d07f6de9-47fa-4c68-9128-846e123c9dd9' \
--data ''
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTRegister

http://localhost:3002/api/users/register
Bodyraw (json)
json
{
      "userName": "Arkaraj2",
      "email": "ark@test.com",
      "password": "test1234"
}
Example Request
curl
curl --location 'http://localhost:3002/api/users/register' \
--data-raw '{
      "userName": "Arkaraj2",
      "email": "ark@test.com",
      "password": "test1234"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTLogin

http://localhost:3002/api/users/login
Bodyraw (json)
json
{
    "email": "a@test.com",
    "password": "test1234"
}
Example Request
curl
curl --location 'http://localhost:3002/api/users/login' \
--data-raw '{
    "email": "a@test.com",
    "password": "test1234"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

DELETELogout

http://localhost:3002/api/users/logout
Example Request
curl
curl --location --request DELETE 'http://localhost:3002/api/users/logout'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers