GET /api/v1/books/<int:id>
Description
This endpoint allows developers to retrieve a book with the specific ID provided.
Parameters
There is only one parameter available and it's required to this endpoint return the correct response.
id: Book ID to get all book informations. (eg: 2)
Request
Response
The response will show the book with the specific ID provided.
{
"_id": "6651c712fe5f5504f6bb05c9",
"id": 2,
"title": "Android in Action, Second Edition",
"authors": [
"W. Frank Ableson",
"Robi Sen"
],
// More book information
}If there is no book with that ID, it will give Error 404.
{
"message": "Error",
"status": "Book not found"
}