Skip to content

SmolinPavel/crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD

Examples of Create Read Update Delete operations

  1. Clone the repo git clone [email protected]:SmolinPavel/crud.git
  2. Change to the project folder cd crud
  3. Install dependencies yarn or npm i
  4. Start the server on port 3000 yarn start or npm start

Endpoints

  • POST http://localhost:3000/user/add - creates a user. Make sure you add a request body.
  • GET http://localhost:3000/user/list - lists all the users. Returns an array of existing users.
  • PUT http://localhost:3000/user/update/:username - update the user by username.
  • DELETE http://localhost:3000/user/delete/:username - deletes the user by username.

About

Crud operations example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published