Examples of Create Read Update Delete operations
- Clone the repo
git clone [email protected]:SmolinPavel/crud.git
- Change to the project folder
cd crud
- Install dependencies
yarn
ornpm i
- Start the server on port 3000
yarn start
ornpm start
- 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.