Guided project starter code for Node API 2 module.
In this project we will learn how to create a very simple Web API using Node.js and Express, and cover how to use Express Routers to break up the application to make it more maintainable.
- clone this repository.
- CD into the folder where you cloned the repo.
- type
npm ito download dependencies.
Please follow along as the instructor builds the API step by step:
| Not using REST | Using REST |
|---|---|
/listAllAdopters |
GET /adopters |
/createAdopter |
POST /adopters |
/updateAdopter |
PUT /adopters/:id |
/deleteAdopter |
DELETE /adopters/:id |
/listAdopterDogs |
GET /adopters/:id/dogs |