Get details of a specific category by code
GET/truckers/categories/getDetails/:value
Search and return the details of a specific category identified by its code.
Features:
- Searches in headings (4 digits) and subheadings (6 digits)
- Exact match (case insensitive)
- Returns the first result found
- Normalizes titles and labels (removes prefixes, cleans special characters)
Processing:
- Removes prefixes such as heading, subheading from titles
- Combines multiple labels into a single one separated by spaces
- Cleans special characters such as -, : from labels
Request
Responses
- 200
- 401
- 404
- 500
Details of the category found with normalized title and label.
Structure:
- title: Normalized category code (without prefixes)
- label: Readable description (without special characters, normalized spaces)
Complete example:
{
title: 010121,
label: Purebred breeding stock,
metadata: {
type: subheading,
originalTitle: subheading 010121,
originalLabels: [Reproductores, -, de, raza, pura]
}
}
Use cases:
- Obtain details to display in user interface
- Validate existing category codes
- Integrate with systems requiring exact code mapping
Unauthorized - Invalid or missing JWT token
Category not found
Internal Server Error