Electrical Catalogs#
Power catalogs used when configuring racks: voltages (with their amperages and receptacles), STS (static transfer switches), regleta PDUs (power strips) and receptacle PDUs.Concepts#
STS, regleta PDUs and receptacle PDUs are plain named items; voltages add amperages and receptacles.
Only voltages can be updated (updating replaces every field).
Broken handlers: create and delete handlers still use Mongoose's callback API, removed in Mongoose 7. Every create crashes the API process; every delete fails with HTTP 500. Lists and updates work. See each endpoint.
Errors of updates are reported with HTTP 200 and an error body.
Endpoints#
Creates a voltage (crashes).PATCH /v1/infra/voltage/{id}DELETE /v1/infra/voltage/{id}Deletes a voltage (broken).Creates an STS (crashes).DELETE /v1/infra/sts/{id}GET /v1/infra/regleta-pduPOST /v1/infra/regleta-pduCreates a regleta PDU (crashes).DELETE /v1/infra/regleta-pdu/{id}Deletes a regleta PDU (broken).GET /v1/infra/receptacle-pduPOST /v1/infra/receptacle-pduCreates a receptacle PDU (crashes).DELETE /v1/infra/receptacle-pdu/{id}Deletes a receptacle PDU (broken).Source#
Router: routes/v1/infra.js
Controller: controllers/infra.js
Sub-controllers: controllers/infra/infra-voltage.js, infra-sts.js, infra-regleta.js, infra-receptac.js
Modified at 2026-10-05 23:28:50