Destinations (destinos) are the named locations — offices, workshops, warehouses, or departments — that serve as delivery points for material dispatches. Because employees must be linked to a destination, and dispatches are directed to a destination, this is a foundational reference table that should be populated before other data is entered. Manage all destinations at theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/destinos route.
Data Model
The destination record is intentionally minimal:| Field | Type | Constraints | Description |
|---|---|---|---|
id_destino | integer | Primary key, auto-generated | Unique numeric identifier for the destination |
nombre | string | Required, max 50 chars | Human-readable name for the location |
Features
Simple CRUD Table
The destinations list displays all location names in a clean table. Records can be created, edited, and deleted directly from the table via inline dialogs.
Referenced by Employees
Every employee record requires a valid
fk_id_destino. The employee creation form populates its destination dropdown from this table.Referenced by Dispatches
Material dispatch records target a specific destination, allowing you to track where inventory was sent and to whom.
Delete Confirmation
Attempting to delete a destination that is currently assigned to employees or dispatches may be prevented by the backend to preserve referential integrity.
API Reference
All endpoints operate on the/destinos resource and return or accept JSON.
List Destinations
Returns an array of all destination records.Response
Get Single Destination
Returns a single destination by its
id_destino.Create Destination
Creates a new destination. The
id_destino is assigned by the server.Update Destination
Updates the name of an existing destination. All employees and dispatches referencing this destination will reflect the updated name automatically.
Delete Destination
Permanently removes a destination record.
Field Validation
Human-readable name for the delivery location. Must be between 1 and 50 characters. Use a name that is recognizable to dispatchers and warehouse staff, such as
"Taller Eléctrico" or "Oficina de Compras".