{
  "openapi": "3.1.0",
  "info": {
    "title": "이도 3D프린팅 견적 API (IDO 3D Printing Quote API)",
    "version": "1.0.0",
    "description": "가로·세로·높이만으로 FDM 3D프린팅 예상 견적 범위를 돌려준다. 인증 없음, 계산만 하고 아무것도 저장하지 않는다. 정확한 금액은 3D 파일을 https://ido3dprint.com/order.html 에 올리면 나온다. Returns an estimated FDM 3D printing price range (KRW) from bounding-box dimensions. No auth, nothing stored.",
    "contact": { "name": "이도 3D프린팅", "url": "https://ido3dprint.com/contact.html", "email": "help@ido3dprint.com" }
  },
  "servers": [{ "url": "https://ido3dprint.com" }],
  "paths": {
    "/api/quote": {
      "get": {
        "operationId": "getPrintQuote",
        "summary": "치수로 3D프린팅 예상 견적 범위 계산 (Estimate 3D printing price from dimensions)",
        "parameters": [
          { "name": "w", "in": "query", "required": true, "description": "가로 (width)", "schema": { "type": "number", "exclusiveMinimum": 0 } },
          { "name": "d", "in": "query", "required": true, "description": "세로 (depth)", "schema": { "type": "number", "exclusiveMinimum": 0 } },
          { "name": "h", "in": "query", "required": true, "description": "높이 (height)", "schema": { "type": "number", "exclusiveMinimum": 0 } },
          { "name": "unit", "in": "query", "description": "단위, 기본 mm. 각 변 최대 250mm", "schema": { "type": "string", "enum": ["mm", "cm", "inch"], "default": "mm" } },
          { "name": "material", "in": "query", "description": "소재", "schema": { "type": "string", "enum": ["PLA", "PETG", "ABS"], "default": "PLA" } },
          { "name": "quality", "in": "query", "description": "std=0.2mm 층·채움 15%, strong=0.2mm 층·채움 40%, fine=0.12mm 층", "schema": { "type": "string", "enum": ["std", "strong", "fine"], "default": "std" } },
          { "name": "lead", "in": "query", "description": "납기: relaxed=10영업일 이내(5% 할인), standard=5~7영업일, rush=2~3영업일(30% 추가)", "schema": { "type": "string", "enum": ["relaxed", "standard", "rush"], "default": "standard" } },
          { "name": "qty", "in": "query", "description": "같은 모델 수량(2개 5%, 5개 10%, 10개 15%, 30개 20%, 100개 25% 할인)", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 1 } },
          { "name": "format", "in": "query", "description": "json(기본), text(한국어 한 단락), html(사람이 볼 페이지)", "schema": { "type": "string", "enum": ["json", "text", "html"], "default": "json" } }
        ],
        "responses": {
          "200": {
            "description": "예상 견적. estimate 는 속이 빈 형태·보통 형태·꽉 찬 상자 형태 세 가지, rangeWon 은 그 최소·최대(제작 금액, 배송비 별도). estimate[].shippingWon 은 행별 배송비(0 = 무료), shippingRule 은 무료배송 기준(제작 금액 50,000원 이상). nextSteps.exactQuoteWithFile 로 이어서 정확한 견적을 받는다.",
            "content": { "application/json": { "schema": { "type": "object" } }, "text/plain": { "schema": { "type": "string" } } }
          },
          "400": { "description": "w·d·h 가 없거나 숫자가 아님. 사용법을 돌려준다." },
          "429": { "description": "너무 잦은 요청" }
        }
      }
    }
  }
}
