POC of a simple REST service to manage users.
- run
npm install
in the root folder of the project - then execute
npm run start:dev or npm start
-
GET get a list of all users http://localhost:4000/api/users/get-all
-
GET get a single user http://localhost:4000/api/users/:id (uuid)
-
POST create user http://localhost:4000/api/users/create
example payload
{ "name": "Darth Vader", "email": "darth.vader@star-wars.com", "password": "LukeImY0urF@ther" }
-
PUT update user http://localhost:4000/api/users/:id (uuid)
example payload
{ "name": "Darth Vader", "email": "darth.vader@star-wars.com", "password": "LukeImY0urF@ther" }
-
DELETE delete user http://localhost:4000/api/users/:id (uuid)
-
POST login user http://localhost:4000/api/auth/login
example payload
{ "email": "darth.vader@star-wars.com", "password": "LukeImY0urF@ther" }