About this document
Enhancing REST API with Comments by Le Thi Thanh Phuong (K16 DN) is a document available to read on EtoBox.
This document describes how to add support for comments to a REST API built with Express, MongoDB, and Mongoose. It includes code to: 1. Get, post, and delete comments for a dish via the /dishes/:dishId/comments route. 2. Get, update, and delete a specific comment via the /dishes/:dishId/comments/:commentId route. Testing the updated API with Postman is recommended to validate the comment functionality. The changes should then be committed to version control.
- Author
- Le Thi Thanh Phuong (K16 DN)
- Language
- EN