- Run
npm installin the command line - Run
npm run-script seedto create the database and initialize it with data - Run
npm startto start the API server
POST: /api/booksCreate a single bookPOST: /api/books/:book_id/pageCreate a new page for a bookGET: /api/booksGet all the book IDs and titlesGET: /api/books/:book_idGet all the pages in a specified bookGET: /api/books/:book_id/page/page_id:Get a single book page in HTML formatPUT: /api/books/:book_idUpdate a book's titlePUT: /api/books/:book_id/page/:page_idUpdate a book pageDELETE: /api/books/:book_idDelete a bookDELETE: /api/books/:book_id/page/:page_idDelete a book page