{
  "openapi": "3.1.0",
  "info": {
    "title": "Matrice del Destino Public Content API",
    "version": "1.0.0",
    "description": "Read-only discovery and analysis of public website content."
  },
  "servers": [
    {
      "url": "https://matricedeldestino.it"
    }
  ],
  "paths": {
    "/api/agent-content": {
      "get": {
        "operationId": "queryPublicContent",
        "summary": "List, search, or analyze public content",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public content result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Path not indexed"
          }
        }
      }
    },
    "/api/agent-markdown": {
      "get": {
        "operationId": "getPublicContentMarkdown",
        "summary": "Return an agent-oriented Markdown representation",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown content",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
