{
  "openapi": "3.1.0",
  "info": {
    "title": "Zuxxis Agency API",
    "version": "1.0.0",
    "description": "Public API for Zuxxis software engineering services, project consultation booking, and content feeds.",
    "contact": {
      "name": "Zuxxis Support",
      "email": "reply@zuxxis.in",
      "url": "https://zuxxis.in"
    }
  },
  "servers": [
    {
      "url": "https://api.zuxxis.in",
      "description": "Production API Server"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Health check",
        "description": "Returns status of Zuxxis backend services",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/inquiry": {
      "post": {
        "summary": "Submit project inquiry",
        "description": "Submit a new freelance project or consultation request",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string", "example": "Jane Doe" },
                  "email": { "type": "string", "example": "jane@company.com" },
                  "company": { "type": "string", "example": "Acme Corp" },
                  "service": { "type": "string", "example": "Website Dev" },
                  "details": { "type": "string", "example": "We need a headless Next.js web application built." }
                },
                "required": ["name", "email", "company", "details"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry successfully received",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "message": { "type": "string", "example": "Inquiry received. We will respond within 24 hours." }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/blogs": {
      "get": {
        "summary": "List blog posts",
        "description": "Returns published technical articles and case studies",
        "responses": {
          "200": {
            "description": "List of published blog articles",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "blogs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": { "type": "string" },
                          "title": { "type": "string" },
                          "created_at": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
