Skip to content

MateuszKikmunter/poc-user-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

POC of a REST service to manage users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published