{
  "openapi": "3.0.3",
  "info": {
    "title": "Kinetic Constanța Public Information API",
    "version": "1.0.0",
    "description": "Read-only published clinic information. Does not send messages, book appointments or expose patient data."
  },
  "servers": [
    {
      "url": "https://kinetic-constanta.ro/api"
    }
  ],
  "paths": {
    "/ai/pages": {
      "get": {
        "operationId": "listPublicPages",
        "summary": "List published clinic information pages",
        "responses": {
          "200": {
            "description": "Public page catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "title": {
                            "type": "string"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/ai/page": {
      "get": {
        "operationId": "readPublicPage",
        "summary": "Read a published clinic page as Markdown",
        "parameters": [
          {
            "in": "query",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "/contact"
          }
        ],
        "responses": {
          "200": {
            "description": "Public page Markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown public page"
          }
        }
      }
    }
  }
}
