{
  "openapi": "3.1.0",
  "info": {
    "title": "BonyanDocs Engineering API",
    "version": "1.0.0",
    "description": "API for civil engineering, contracting calculations, and BOQ estimation tools."
  },
  "servers": [
    {
      "url": "https://bonyandocs.com"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Health check endpoint",
        "responses": {
          "200": {
            "description": "API is operational",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/rebar": {
      "post": {
        "summary": "Calculate rebar weight and length",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "diameter_mm": {
                    "type": "number"
                  },
                  "length_m": {
                    "type": "number"
                  }
                },
                "required": [
                  "diameter_mm"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
