API Documentation

This document provides information on the available API endpoints for the Conduit and Wire Weight Calculator.

Endpoints

GET /api/conduits

Retrieve a list of available conduits.

GET /api/conduits

POST /api/conduits

Add a new conduit entry.

POST /api/conduits
{
  "type": "EMT",
  "size": "1",
  "length": "10"
}

GET /api/wires

Retrieve a list of available wires.

GET /api/wires

POST /api/wires

Add a new wire entry.

POST /api/wires
{
  "insulation": "THWN-2",
  "size": "12",
  "length": "50",
  "count": "5"
}