Personal Library
- I can POST a
title
to /api/books to add a book and returned will be the object with thetitle
and a uniqueid
. - I can GET /api/books to retrieve an aray of all books containing
id
,title
,comments
, &commentcount
. - I can GET /api/books/{id} to retrieve a single object of a book containing
id
,title
, an array ofcomments
(empty array if no comments present), &commentcount
. - I can POST a
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}. - I can DELETE /api/books/{id} to delete a book from the database. Returned will be 'successfully deleted' if successful.
- If I try to request a book that does not exist I will get a 'book not found' message.
- I can send a DELETE request to /api/books to delete all books in the database. Returned will be 'complete delete successful' if successful.
- All 10 tests required are complete and passing.