In this exercise, you are going to extend the REST APIs you have been building to handle DELETE and PUT requests. You will also learn how to make your route handling more modular in express using express.Router.
- Use Express.Router to encapsulate routing behavior for different resources
- Explain and build a CRUD RESTful JSON API including PUT and DELETE
- Build an API to satisfy a specification
- Fork this repository
- Clone the forked repository onto your local machines
- In the root directory, type
npm install
, which installs dependencies for the project - Finally, type
npm start
, which starts a development server that will reload whenever you make any changes to source files
Your instructor will demonstrate how to encapsulate route parameters for the /users
endpoints using express.Router.
- Implement the
users
,films
andbooks
endpoints for this API according to the API spec
- Implement the
EXTENSION
criteria as highlighted in the API spec