cURL
curl --request GET \ --url https://api.example.com/api/categories/{id}
{ "success": true, "timestamp": "<string>", "data": { "id": 123, "name": "<string>" }, "message": "<string>", "error": {} }
Retrieve a specific category by ID
GET /api/categories/{id}
curl -X GET "http://localhost:8080/api/categories/1"
{ "success": true, "timestamp": "2026-03-03T10:30:00Z", "data": { "id": 1, "name": "Fiction" }, "message": null, "error": null }
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "data": null, "message": null, "error": { "message": "Category not found with id: 999", "details": [] } }
apps/spring-boot-app/src/main/java/me/seyrek/library_management_system/category/controller/CategoryController.java:30