Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AC42027/Backend-produccion/llms.txt

Use this file to discover all available pages before exploring further.

Inspection assignments schedule which technician is responsible for inspecting which equipment during a given week. Assignments are keyed by week start date (Monday) and can be fully replaced in a single POST.

GET /api/asignaciones/

Method: GET Path: /api/asignaciones/ Auth: Session cookie required

Query parameters

fecha
string
Filter by week start date (YYYY-MM-DD). Omit to return all assignments.

Response fields

id
integer
Assignment ID
fecha
string
Week start date (Monday)
asociado
string
Technician name or ID
equipo
string
Equipment name
zona
string
Zone name (optional)
asignado_por
string
Who created the assignment (default: “Admin”)
creado_en
string
ISO 8601 creation timestamp
curl -b cookies.txt "http://<host>:8080/api/asignaciones/?fecha=2025-01-13"

POST /api/asignaciones/

Method: POST Path: /api/asignaciones/ Auth: Session cookie required Replaces all assignments for the given fecha week with the provided list.
fecha
string
required
Week start date (Monday) in YYYY-MM-DD
asignado_por
string
Name of admin creating assignments (default: “Admin”)
asignaciones
array
required
List of assignment objects with asociado, equipo, zona
curl -b cookies.txt -X POST http://<host>:8080/api/asignaciones/ \
  -H "Content-Type: application/json" \
  -d '{
    "fecha": "2025-01-13",
    "asignado_por": "Supervisor",
    "asignaciones": [
      {"asociado": "ac17157", "equipo": "Compresor A1", "zona": "Zona 1"},
      {"asociado": "ac18342", "equipo": "Bomba B2", "zona": "Zona 2"}
    ]
  }'
Success response (201):
{"status": "ok", "mensaje": "Se guardaron 2 asignaciones"}
POSTing to a fecha replaces ALL existing assignments for that week. Previous assignments for that date are deleted before the new ones are saved.

Build docs developers (and LLMs) love