Skip to content

Latest commit

 

History

History
88 lines (80 loc) · 1.64 KB

README.md

File metadata and controls

88 lines (80 loc) · 1.64 KB

poc-user-manager

POC of a simple REST service to manage users.

How to run the project

  • run npm install in the root folder of the project
  • then execute npm run start:dev or npm start

Available endpoints

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

Tech stack