Overview
Retrieves detailed information about a specific category by its name.Authentication
This endpoint requires:- Valid JWT token in the
Authorizationheader - User must have ADMIN role
Request
The name of the category to retrieve. This is used as the route parameter.
Response
Indicates if the request was successful
Success message indicating the category was retrieved
The category object
Unique identifier for the category
Category name (max 255 characters)
Optional category description (max 255 characters)
Timestamp when the category was created
Timestamp when the category was last updated
Timestamp when the category was soft deleted (null if active)
Code Examples
Response Examples
Success Response (200 OK)
Not Found Response (404 Not Found)
Returned when the category with the specified name does not exist:Unauthorized Response (401 Unauthorized)
Forbidden Response (403 Forbidden)
Returned when the authenticated user does not have ADMIN role:Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Category retrieved |
| 401 | Unauthorized - Invalid or missing JWT token |
| 403 | Forbidden - User does not have ADMIN role |
| 404 | Not Found - Category does not exist |
| 500 | Internal Server Error |