Professional Documents
Culture Documents
Assignment 1
Assignment 1
Task 1
• Update the Node module named dishRouter.js to implements the Express router
for the /dishes/:dishId REST API end point.
• The REST API supports GET, PUT, POST and DELETE operations on
/dishes/:dishId end point.
◆ Method: GET
◆ Send request to: /dishes/1
◆ Method: POST
Task 2
• Create a Node module named promoRouter.js that implements the Express router
for the /promotions and /promotions/:promoId REST API end points.
• The REST API supports GET, PUT, POST and DELETE operations on
/promotions
• Create a Node module named leaderRouter.js that implements the Express router
for the /leaders and /leaders/:leaderId REST API end points.
• The REST API supports GET, PUT, POST and DELETE operations on /leaders