Planta Milenio provides 12 autocomplete endpoints used by its frontend forms to deliver real-time field suggestions as the user types. All 12 endpoints areDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanDiego3030/Planta_Milenio/llms.txt
Use this file to discover all available pages before exploring further.
GET-only, accept a single q query parameter containing the search string, and return a JSON array of matching results. All endpoints return at most 10 results per request. None of these endpoints perform a session or permission check — they are open to any request that reaches the Django application.
Shared Query Parameter
All autocomplete endpoints accept the following query parameter:The search term. Transport and logistics endpoints filter using SQL Server
LIKE matching (e.g. WHERE column LIKE '%q%'). Visitor/personnel endpoints
use Django ORM icontains, which is case-insensitive on the local SQLite
database. Passing an empty string returns an empty array for all endpoints
except /autocomplete/destino/, which returns all destinations when q is
empty.Transport and Logistics Endpoints
These six endpoints query the external Ceres Romana SQL Server database and are used to populate fields on the raw-material intake and dispatch forms. All transport endpoints return an empty array whenq is empty (except destino — see below).
GET /autocomplete/empresa/
Searches theempresa table by Empresa_Rif or Empresa_Nombre using LIKE. Both fields are matched independently, and any record where either field matches is returned.
Primary key of the empresa record.
Tax identification number (RIF) of the company, e.g.
J-12345678-9.Registered company name.
GET /autocomplete/chuto/
Searches theVehiculo table by Vehiculo_placa (tractor-unit licence plate) using LIKE.
Primary key of the Vehiculo record.
Licence plate of the tractor unit (chuto).
Vehicle description or model name.
GET /autocomplete/tanque/
Searches theVehiculo_Remolque table by Vehiculo_Remolque_Placa (tank trailer licence plate) using LIKE.
Licence plate of the tank trailer (tanque / remolque).
Short identifier or name for the trailer.
Optional extended description; may be an empty string.
GET /autocomplete/destino/
Searches theDestino table by Destino_Nombre using LIKE. If q is empty, all destinations are returned rather than an empty array, making it suitable for populating an initial dropdown on page load.
Primary key of the Destino record.
Destination name.
Optional description; may be an empty string.
This is the only transport endpoint that returns results for an empty
q.
Sending GET /autocomplete/destino/?q= returns every destination in the
table, ordered by Destino_Nombre.GET /autocomplete/conductor/
Searches theconductor table by Conductor_Cedula (national ID number) using LIKE.
Primary key of the conductor record.
Driver’s national ID number, e.g.
V-12345678.Driver’s first name.
Driver’s surname.
Optional notes field; may be an empty string.
Driver’s contact phone number. The field key is
telf, not telefono.GET /autocomplete/producto/
Searches thePRODUCTO table in Ceres Romana by Producto_Codigo or Producto_Nombre using SQL Server LIKE (case sensitivity depends on the database collation). Returns the top 10 matching products via SELECT TOP 10.
Primary key of the PRODUCTO record.
Internal product code, e.g.
PROD-001.Full product name.
Visitor and Personnel Endpoints
These six endpoints query the local SQLite database via theAccesoPersona model and are used to populate suggestion fields on the visitor-access control form. Each endpoint targets a single field on the model and returns a plain JSON array of matching string values (not objects). All six use icontains (case-insensitive) matching and return at most 10 distinct results. An empty q returns an empty array for all six endpoints.
GET /autocomplete/persona/nombre/
SearchesAccesoPersona.nombre for matching first names.
GET /autocomplete/persona/apellido/
SearchesAccesoPersona.apellido for matching surnames.
GET /autocomplete/persona/cedula/
SearchesAccesoPersona.cedula for matching national ID numbers.
GET /autocomplete/persona/placa/
SearchesAccesoPersona.placa_vehiculo for matching visitor vehicle plates.
GET /autocomplete/persona/empresa/
SearchesAccesoPersona.empresa for matching visitor company names. An empty q returns an empty array (the view applies an if q: guard before querying).
GET /autocomplete/persona/autorizado_por/
SearchesAccesoPersona.autorizado_por for matching authoriser names or departments. Unlike the other persona endpoints, this endpoint queries even when q is empty — it applies no if q: guard — and returns up to 10 distinct non-empty values from the autorizado_por column.