API endpoints for the catalog in php(Lumen)
Live url from heroku https://topupmama-book.herokuapp.com/api/authors The api has the following endpoints
- View all the authors http://127.0.0.1:8000/api/authors
- View one author http://127.0.0.1:8000/api/authors/{id}
- view all books http://127.0.0.1:8000/api/books
- View books with respective to their authors http://127.0.0.1:8000/api/authors/{id}/books
- View all comments http://127.0.0.1:8000/api/comments
- View comments in relation to books http://127.0.0.1:8000/books/{book_id}/comments/{comment_id}
- Post authors http://127.0.0.1:8000/api/authors
- Post books http://127.0.0.1:8000/api/authors/{author_id}/books
- Comments http://127.0.0.1:8000/api/books/{book_id}/comments
- Authors http://127.0.0.1:8000/api/authors/{id}
- Books http://127.0.0.1:8000/api/authors/{author_id}/books/{book_id}
- Authors http://127.0.0.1:8000/api/authors/{id}
- Books http://127.0.0.1:8000/api/authors/{author_id}/books/{book_id}
- php -S localhost:8000 -t public