cURL
curl --request GET \ --url https://api.example.com/api/books/{id}
{ "success": true, "data": { "id": 123, "isbn": "<string>", "title": "<string>", "description": "<string>", "coverImageUrl": "<string>", "authors": [ { "id": 123, "name": "<string>" } ], "category": { "id": 123, "name": "<string>" } }, "message": "<string>" }
Retrieve a specific book by ID
GET /api/books/{id}
curl -X GET "http://localhost:8080/api/books/1"
{ "success": true, "data": { "id": 1, "isbn": "9780134685991", "title": "Effective Java", "description": "A comprehensive guide to Java programming best practices and design patterns. This third edition covers Java 7, 8, and 9, including new features like lambdas, streams, and modules.", "coverImageUrl": "https://example.com/covers/effective-java.jpg", "authors": [ { "id": 1, "name": "Joshua Bloch" } ], "category": { "id": 2, "name": "Programming" } }, "message": null }
{ "success": false, "data": null, "message": "Book not found with id: 999" }
coverImageUrl