{
  "openapi": "3.1.0",
  "info": {
    "title": "PriceMyConcrete Estimate API",
    "version": "1.0.0",
    "description": "Installed-cost estimates for concrete flatwork in the Pittsburgh area (Allegheny, Washington, Westmoreland, Butler and Beaver counties). Free, no authentication."
  },
  "servers": [
    {
      "url": "https://www.pricemyconcrete.com"
    }
  ],
  "paths": {
    "/api/estimate": {
      "get": {
        "operationId": "getConcreteEstimate",
        "summary": "Estimate the installed cost of a concrete driveway, patio, sidewalk, garage slab or pad",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "driveway",
                "patio",
                "sidewalk",
                "garage",
                "pad"
              ]
            }
          },
          {
            "name": "length",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Feet. Use with width, or use area."
          },
          {
            "name": "width",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Feet."
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Square feet."
          },
          {
            "name": "finish",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "broom",
                "colored",
                "exposed",
                "stamped"
              ]
            }
          },
          {
            "name": "thickness",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Inches."
          },
          {
            "name": "tearout",
            "in": "query",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            },
            "description": "1 to include removing old concrete."
          },
          {
            "name": "pump",
            "in": "query",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            }
          },
          {
            "name": "sealer",
            "in": "query",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Estimate with low/high range, per-square-foot range and cost breakdown"
          }
        }
      }
    }
  }
}