{
  "openapi": "3.1.0",
  "info": {
    "title": "nerkooo Agency Services API",
    "version": "1.0.0",
    "description": "Public read-only and inquiry API for nerkooo digital agency. Delivers service listings, pricing tiers, and project inquiries without requiring authentication.",
    "contact": {
      "name": "Nermin Karić",
      "email": "nermin@nerkooo.com",
      "url": "https://nerkooo.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://nerkooo.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api": {
      "get": {
        "operationId": "getApiOverview",
        "summary": "Overview of available public endpoints",
        "description": "Returns basic agency metadata and list of available API routes.",
        "responses": {
          "200": {
            "description": "Overview object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiOverview"
                }
              }
            }
          }
        }
      }
    },
    "/api/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List all agency digital and AI services",
        "description": "Returns the complete catalog of services including Web Design, Web & Mobile App Development, and AI Voicebots/Chatbots.",
        "responses": {
          "200": {
            "description": "Array of services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/pricing": {
      "get": {
        "operationId": "getPricing",
        "summary": "Get pricing packages and deliverables",
        "description": "Returns starting budgets, timelines, and deliverables for each service category.",
        "responses": {
          "200": {
            "description": "Pricing packages structure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "operationId": "submitInquiry",
        "summary": "Submit a client inquiry or consultation request",
        "description": "Sends a project message or request for consultation to the nerkooo engineering team.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InquiryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry successfully recorded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InquiryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiOverview": {
        "type": "object",
        "required": ["name", "version", "endpoints"],
        "properties": {
          "name": { "type": "string" },
          "version": { "type": "string" },
          "endpoints": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      },
      "ServiceItem": {
        "type": "object",
        "required": ["id", "title", "description", "startingPrice"],
        "properties": {
          "id": { "type": "string" },
          "title": { "type": "string" },
          "description": { "type": "string" },
          "startingPrice": { "type": "string" },
          "technologies": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      },
      "PricingInfo": {
        "type": "object",
        "required": ["currency", "packages"],
        "properties": {
          "currency": { "type": "string" },
          "packages": {
            "type": "array",
            "items": { "type": "object" }
          }
        }
      },
      "InquiryRequest": {
        "type": "object",
        "required": ["name", "email", "message"],
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "service": { "type": "string" },
          "message": { "type": "string" }
        }
      },
      "InquiryResponse": {
        "type": "object",
        "required": ["success", "message"],
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message", "resolution"],
            "properties": {
              "code": { "type": "string" },
              "message": { "type": "string" },
              "resolution": { "type": "string" }
            }
          }
        }
      }
    }
  }
}
