title
to /api/books to add a book and returned will be the object with the title
and a unique _id
.title
, _id
, & commentcount
.title
, _id
, & an array of comments
(empty array if no comments present).comment
to /api/books/{_id} to add a comment to a book and returned will be the books object similar to get /api/books/{_id}.Select a book to see it's details and comments