{
  "openapi": "3.1.0",
  "info": {
    "title": "CODEFORGE TECHNOLOGIES & SOLUTIONS API",
    "description": "API for discovering Codeforge engineering services, estimating software development projects, and agent interactions.",
    "version": "1.0.0",
    "contact": {
      "name": "CODEFORGE TECHNOLOGIES & SOLUTIONS Support",
      "email": "info@thecodeforge.in",
      "url": "https://thecodeforge.in"
    }
  },
  "servers": [
    {
      "url": "https://thecodeforge.in/api/v1",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "summary": "Health Check",
        "description": "Check service operational health.",
        "responses": {
          "200": {
            "description": "System operational",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "timestamp": { "type": "string", "format": "date-time" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services": {
      "get": {
        "summary": "List Services",
        "description": "Get all software development, AI, blockchain, and ERPNext service offerings.",
        "responses": {
          "200": {
            "description": "Array of services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": { "type": "string" },
                      "title": { "type": "string" },
                      "category": { "type": "string" },
                      "technologies": { "type": "array", "items": { "type": "string" } }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/quotes/estimate": {
      "post": {
        "summary": "Estimate Project",
        "description": "Submit requirements to get an estimated architectural breakdown, milestone timeline, and cost range.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["projectType", "requirements"],
                "properties": {
                  "projectType": { "type": "string" },
                  "requirements": { "type": "array", "items": { "type": "string" } },
                  "clientEmail": { "type": "string", "format": "email" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Project estimation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "estimatedWeeks": { "type": "integer" },
                    "architecture": { "type": "array", "items": { "type": "string" } },
                    "status": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
