Get All Book

Get All Book

To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:

Method : GET

URL : /api/book

Response : 200 - OK

[
	{
		"id": 1,
		"author_id": 1,
		"slug": "the-hunger-games",
		"title": "The Hunger Games (The Hunger Games #1)",
		"language": "English",
		"pages": "374",
		"published": "2008-09-14",
		"link": "https://www.goodreads.com/book/show/2767052-the-hunger-games",
		"image": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1586722975i/2767052.jpg",
		"book_authors": {
			"id": 1,
			"slug": "suzanne-collins",
			"name": "Suzanne Collins"
		}
	},
	{
		"id": 2,
		"author_id": 2,
		"slug": "harry-potter-and-the-order-of-the-phoenix",
		"title": "Harry Potter and the Order of the Phoenix (Harry Potter #5)",
		"language": "English",
		"pages": "912",
		"published": "2003-06-21",
		"link": "https://www.goodreads.com/book/show/2.Harry_Potter_and_the_Order_of_the_Phoenix",
		"image": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1546910265i/2.jpg",
		"book_authors": {
			"id": 2,
			"slug": "jk-rowling",
			"name": "J.K. Rowling"
		}
	}
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error