title to /api/books to add a book and returned will be the object with the title and a unique id.id, title, comments, & commentcount.id, title, an array of comments (empty array if no comments present), & commentcount.comment to /api/books/{id} to add a comment to a book and returned will be the book object similar to GET /api/books/{id}.| API | GET | POST | DELETE |
|---|---|---|---|
| /api/books | list all books | add new book | delete all books |
| /api/books/1 | show book 1 | add comment to 1 | delete 1 |
Select a book to see its details and comments