This repo follows the youtube tutorial Build a REST API with Node JS and Express | CRUD API Tutorial
npm install
npm run
- Open Postman and make a GET request to http://localhost:5000/users
- You should see an empty array to start
- Add a user or users by making a POST request to http://localhost:5000/users in the following format:
{
"firstName": "FIRST_NAME",
"lastName":"LAST_NAME",
"age":NUMBER
}
- Once users have been added, make another GET request to http://localhost:5000/users, and you should see the users you added.
Make a GET request to http://localhost:5000/users/INSERTIDHERE
Make a DELETE Request to http://localhost:5000/users/INSERTIDHERE
Make a PATCH Request to http://localhost:5000/users/INSERTIDHERE with the body that you want to edit. For example:
{"firstName":"Cherrie"}