{
  "openapi": "3.2.0",
  "info": {
    "title": "CYBERMAPS public website API",
    "version": "1.0.0",
    "description": "Public read-only access to indexed website content. No WordPress administration access."
  },
  "servers": [
    {
      "url": "https://cybermaps.dev"
    }
  ],
  "paths": {
    "/api/agent/search": {
      "get": {
        "operationId": "search_site",
        "summary": "Search published CYBERMAPS website pages.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 10,
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public content result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "403": {
            "description": "Origin rejected"
          },
          "404": {
            "description": "Unknown indexed page"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Service unavailable"
          }
        }
      }
    },
    "/api/agent/pages": {
      "get": {
        "operationId": "list_site_pages",
        "summary": "List public pages in canonical path order.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public content result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "403": {
            "description": "Origin rejected"
          },
          "404": {
            "description": "Unknown indexed page"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Service unavailable"
          }
        }
      }
    },
    "/api/agent/page": {
      "get": {
        "operationId": "get_site_page",
        "summary": "Read an exact indexed public page as Markdown.",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^\\/.*"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public content result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "403": {
            "description": "Origin rejected"
          },
          "404": {
            "description": "Unknown indexed page"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Service unavailable"
          }
        }
      }
    },
    "/api/agent/site": {
      "get": {
        "operationId": "get_site_summary",
        "summary": "Read public site identity and content counts.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Public content result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "403": {
            "description": "Origin rejected"
          },
          "404": {
            "description": "Unknown indexed page"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Service unavailable"
          }
        }
      }
    }
  }
}