{
  "openapi": "3.1.0",
  "info": {
    "title": "ADEX Construction public site API",
    "version": "1.0.0",
    "description": "Read-only JSON resources describing ADEX Construction, its services, contact details, and discovery metadata. No authentication is required for these public resources.",
    "contact": {
      "name": "ADEX Construction",
      "email": "info@adex-construction.com",
      "url": "https://adex-construction.com/"
    },
    "license": {
      "name": "All rights reserved"
    }
  },
  "servers": [
    {
      "url": "https://adex-construction.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Site",
      "description": "Public company and service information."
    },
    {
      "name": "Discovery",
      "description": "Machine-readable agent discovery resources."
    }
  ],
  "paths": {
    "/api/site.json": {
      "get": {
        "tags": ["Site"],
        "summary": "Get public company, service, contact, and service-area information",
        "operationId": "getSiteInformation",
        "responses": {
          "200": {
            "description": "Public site information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteInformation"
                }
              }
            }
          }
        }
      }
    },
    "/api/health.json": {
      "get": {
        "tags": ["Site"],
        "summary": "Check whether the public site API is available",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Service health",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "tags": ["Discovery"],
        "summary": "RFC 9727 API catalog",
        "operationId": "getApiCatalog",
        "responses": {
          "200": {
            "description": "Linkset describing the public API",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "linkset": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Agentic Resource Discovery capability manifest",
        "operationId": "getAiCatalog",
        "responses": {
          "200": {
            "description": "ARD manifest",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/agent-skills/index.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Agent Skills discovery index",
        "operationId": "getAgentSkills",
        "responses": {
          "200": {
            "description": "Agent Skills index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp/server-card.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "MCP Server Card",
        "operationId": "getMcpServerCard",
        "responses": {
          "200": {
            "description": "MCP server card",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SiteInformation": {
        "type": "object",
        "required": ["name", "url", "description", "services", "contact"],
        "properties": {
          "name": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "description": { "type": "string" },
          "location": { "type": "string" },
          "serviceAreas": {
            "type": "array",
            "items": { "type": "string" }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["name", "description"],
              "properties": {
                "name": { "type": "string" },
                "description": { "type": "string" }
              }
            }
          },
          "contact": {
            "type": "object",
            "properties": {
              "email": { "type": "string", "format": "email" },
              "phone": { "type": "string" },
              "whatsapp": { "type": "string" },
              "quote": { "type": "string", "format": "uri" }
            }
          },
          "hours": { "type": "string" },
          "languages": {
            "type": "array",
            "items": { "type": "string" }
          },
          "pages": {
            "type": "object",
            "additionalProperties": { "type": "string", "format": "uri" }
          },
          "updated": { "type": "string", "format": "date" }
        }
      },
      "Health": {
        "type": "object",
        "required": ["status", "service", "version"],
        "properties": {
          "status": { "type": "string", "enum": ["ok"] },
          "service": { "type": "string" },
          "version": { "type": "string" },
          "checkedAt": { "type": "string", "format": "date-time" }
        }
      }
    }
  }
}
