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.

Submit a completed equipment inspection. The request body includes location references, timing, SAP equipment data, and a map of technical checklist results. Method: POST Path: /api/guardar/ Auth: Session cookie required (IP restricted)

Request body

fecha
string
required
Inspection date in YYYY-MM-DD format
horaInicio
string
required
Start time, e.g. “08:30:00”
horaFin
string
required
End time, e.g. “09:00:00”
division
integer
required
Division ID from /api/divisiones/
area
integer
required
Area ID from /api/areas/
zona
integer
required
Zone ID from /api/zonas/
equipo
integer
required
Equipment ID from /api/equipos/
observaciones
string
General observations text
owner
string
LDAP username of the inspector, e.g. “ac17157”
sap_equnr
string
SAP equipment code (EQUNR)
sap_equnr_desc
string
SAP equipment description
sap_tplnr
string
SAP technical location (TPLNR)
sap_puesto_trabajo
string
SAP work center
comentario_hallazgo
string
SAP finding comment
tecnicos
object
required
Map of checklist item description to status: {"Item description": "OK"|"NOK"|"NA"}
observacionesTecnicas
object
Map of checklist item description to comment text
criticos
object
Map of checklist item description to boolean (true = critical finding)

Response

{"status": "ok", "message": "Inspección guardada"}
On error:
{"status": "error", "message": "<error detail>"}

Example request

curl -b cookies.txt -X POST http://<host>:8080/api/guardar/ \
  -H "Content-Type: application/json" \
  -d '{
    "fecha": "2025-01-15",
    "horaInicio": "08:00:00",
    "horaFin": "08:45:00",
    "division": 1,
    "area": 1,
    "zona": 2,
    "equipo": 5,
    "owner": "ac17157",
    "observaciones": "Inspection completed normally.",
    "sap_equnr": "10001234",
    "tecnicos": {
      "Oil level check": "OK",
      "Belt tension": "NOK",
      "Safety guard": "NA"
    },
    "observacionesTecnicas": {
      "Belt tension": "Belt shows wear, replacement scheduled"
    },
    "criticos": {
      "Belt tension": true
    }
  }'

Build docs developers (and LLMs) love