List All Categories
Response
Array of category objects
Example Request
Example Response
Get Category by ID
Path Parameters
The unique identifier of the category
Response
Unique identifier for the category
Category name
Category status (active/inactive)
Timestamp when the category was created
Example Request
Example Response
Error Responses
- 404 Not Found: Category with the specified ID does not exist
Create Category
Request Body
Category name (must be unique and not blank)
Category status (active/inactive)
Response
Returns the created category object with auto-generated fields.Auto-generated unique identifier
Category name
Category status
Auto-generated creation timestamp
Example Request
Example Response
Validation Rules
nombrecannot be blank (validation message: “El nombre es obligatorio”)nombremust be unique across all categories
Update Category
Path Parameters
The unique identifier of the category to update
Request Body
Updated category name (must be unique and not blank)
Updated category status
Response
Returns the updated category object.Category identifier
Updated category name
Updated category status
Original creation timestamp
Example Request
Example Response
Error Responses
- 404 Not Found: Category with the specified ID does not exist
Deactivate Category
Path Parameters
The unique identifier of the category to deactivate
Response
Returns a 204 No Content status on success.Example Request
Response
Delete Category
Path Parameters
The unique identifier of the category to delete