DELETE /api/platos/:id
Soft-deletes a dish by setting its borrado_en timestamp. The record remains in the database but is excluded from all active dish queries.
Authentication: Bearer JWT requiredRequired role:
admin
Request
Path parameters
The dish ID (nanoid format, 10 characters)
Response
Success (200)
Confirmation message, e.g.
"Plato con ID aB3dEfGhIj eliminado exitosamente (soft delete)"Error responses
| Status | Description |
|---|---|
| 401 | Unauthorized — missing or invalid JWT |
| 403 | Forbidden — role is not admin |
| 404 | Dish not found or already deleted |