Skip to main content

Overview

The ICP System frontend communicates with a single backend REST API. Every request is sent through the shared Axios instance in src/shared/api/http.ts with the base path /api.
All endpoints (except POST /v1/auth/login) require a valid Bearer token. The token is attached automatically by the request interceptor in http.ts:

Standard response envelope

Most list and mutation endpoints return a consistent response shape:

Sample authenticated request


Endpoints by resource

Login request body
Login response
/v1/auth/me response
GET /v1/proveedores/listar query parametersPUT /v1/proveedores/editar request body
GET /v1/servicios-proveedor/listar query parametersPOST /v1/servicios-proveedor/:id/ajustar-capacidad request body
A positive delta_disponible increases available capacity; a negative value decreases it.
GET /v1/nodos/listar query parametersGET /v1/nodos/:id response shape
GET /v1/conexiones/listar query parametersPOST /v1/conexiones request body (key fields)
GET /v1/equipo_principal/listar query parametersPOST /v1/equipo_principal/crear request body
Both endpoints accept a multipart/form-data body with a single file field containing the .xlsx file.POST /v1/importacion/listar-columnas response shape
Required columns for /v1/importacion/listar-hoja-datosCID, ID PROVEEDOR, PROVEEDOR, CONDICION, MODALIDAD, DESTINO, CAPACIDAD COMPRADA, OBSERVACIÓN, CAPACIDAD VENDIDA, OBSERVACION DE VENTA, CAPACIDAD ACTUAL