Get Detail 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?id=(id)
URL : /api/book?slug=(slug)
Response : 200 - OK
{
"id": 1,
"created_at": "2023-05-24T08:44:31.337685+00:00",
"author_id": 1,
"title": "The Hunger Games (The Hunger Games #1)",
"isbn": "",
"language": "English",
"pages": "374",
"published": "2008-09-14",
"genre": "Young Adult, Fiction, Dystopia, Fantasy, Science Fiction, Romance, Adventure",
"rating": "4.33 avg rating - 7.985.168 ratings",
"score": "3.498.046",
"vote": "35.609",
"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",
"image_small": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1586722975i/2767052._SX50_.jpg",
"description": "Could you survive on your own in the wild, with every one out to make sure you don't live to see the morning?In the ruins of a place once known as North America lies the nation of Panem, a shining Capitol surrounded by twelve outlying districts. The Capitol is harsh and cruel and keeps the districts in line by forcing them all to send one boy and one girl between the ages of twelve and eighteen to participate in the annual Hunger Games, a fight to the death on live TV. Sixteen-year-old Katniss Everdeen, who lives alone with her mother and younger sister, regards it as a death sentence when she steps forward to take her sister's place in the Games. But Katniss has been close to dead before—and survival, for her, is second nature. Without really meaning to, she becomes a contender. But if she is to win, she will have to start making choices that weight survival against humanity and life against love.",
"slug": "the-hunger-games",
"book_authors": {
"id": 1,
"slug": "suzanne-collins",
"name": "Suzanne Collins",
"image": "https://images.gr-assets.com/authors/1630199330p5/153394.jpg",
"bio": "Librarian Note: There is more than one author in the Goodreads database with this name.Since 1991, Suzanne Collins has been busy writing for children’s television. She has worked on the staffs of several Nickelodeon shows, including the Emmy-nominated hit Clarissa Explains it All and The Mystery Files of Shelby Woo. For preschool viewers, she penned multiple stories for the Emmy-nominated Little Bear and Oswald. She also co-wrote the critically acclaimed Rankin/Bass Christmas special, Santa, Baby! Most recently she was the Head Writer for Scholastic Entertainment’s Clifford’s Puppy Days.While working on a Kids WB show called Generation O! she met children’s author James Proimos, who talked her into giving children’s books a try.Thinking one",
"web": "http://suzannecollinsbooks.com/"
},
"genre_array": [
{
"id": 11,
"name": "Fiction",
"slug": "fiction"
},
{
"id": 10,
"name": "Fantasy",
"slug": "fantasy"
},
{
"id": 25,
"name": "Romance",
"slug": "romance"
}
]
}
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error