GET /api/platos/:id
Returns a single dish by its ID. Returns 404 if the dish does not exist or has been soft-deleted.
Authentication: Bearer JWT requiredRequired role: any authenticated user
Request
Path parameters
The dish ID (nanoid format, 10 characters)
Response
Success (200)
Unique dish ID (nanoid, 10 characters)
Dish name
Dish price as a decimal string (e.g.
"25.00")Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Soft-delete timestamp —
null for active dishesError responses
| Status | Description |
|---|---|
| 401 | Unauthorized — missing or invalid JWT |
| 404 | Dish not found or has been deleted |