Obed Nuertey
/api/books
with title as part of the form data to add a book. The returned response will be an object with the title and a unique _id as keys. If title is not included in the request, the returned response should be the string missing required field title./api/books
and receive a JSON response representing all the books. The JSON response will be an array of objects with each object (book) containing title, _id, and commentcount properties./api/books/{_id}
to retrieve a single object of a book containing the properties title, _id, and a comments array (empty array if no comments present). If no book is found, return the string no book exists./api/books/{_id}
to add a comment to a book. The returned response will be the books object similar to GET /api/books/{_id}
request in an earlier test. If comment is not included in the request, return the string missing required field comment. If no book is found, return the string no book exists./api/books/{_id}
to delete a book from the collection. The returned response will be the string delete successful if successful. If no book is found, return the string no book exists./api/books
to delete all books in the database. The returned response will be the string complete delete successful if successful.