Authentication
This endpoint requires a valid JWT token in the Authorization header.
Authorization: Bearer <your_jwt_token>
Path Parameters
The unique identifier (UUID) of the book to retrieve.
Response
Unique identifier of the book.
The genre or category of the book.
URL or path to the book’s cover image.
The main title of the book.
The subtitle of the book.
The name of the publisher.
The publication year of the book.
The number of pages in the book.
The International Standard Book Number (ISBN).
curl -X GET "https://api.example.com/api/v1/books/findById/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"gender": "Fantasy",
"author": "J.R.R. Tolkien",
"image": "https://example.com/covers/lotr.jpg",
"title": "The Lord of the Rings",
"subtitle": "The Fellowship of the Ring",
"publisher": "Allen & Unwin",
"year": "1954",
"pages": 423,
"isbn": "978-0-618-00222-1"
}
Status Codes
Book retrieved successfully.
Missing or invalid JWT token.
Valid token but insufficient permissions.
Book with the specified ID does not exist.