{
  "openapi": "3.1.0",
  "info": {
    "title": "Vaquero Labs Public Content API",
    "version": "1.0.0",
    "description": "Anonymous read-only public website content. Contact and investment forms are separate browser workflows; private operator APIs are not exposed.",
    "contact": {
      "name": "Vaquero Labs",
      "email": "contact@vaqueros.dev",
      "url": "https://vaqueros.dev/contact/"
    }
  },
  "servers": [
    {
      "url": "https://vaqueros.dev"
    }
  ],
  "security": [],
  "paths": {
    "/api/pages": {
      "get": {
        "operationId": "getPublicPages",
        "summary": "List public pages or read one page as Markdown in JSON",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "Exact canonical path from the page index, including the trailing slash. Omit to list pages.",
            "schema": {
              "type": "string"
            },
            "example": "/cyber-lab/"
          }
        ],
        "responses": {
          "200": {
            "description": "Page index when path is absent; one page when path is present.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PageIndex"
                    },
                    {
                      "$ref": "#/components/schemas/PageContent"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown or non-public page path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method. Use GET or HEAD.",
            "headers": {
              "Allow": {
                "schema": {
                  "type": "string",
                  "const": "GET, HEAD"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "headPublicPages",
        "summary": "Return the same status and headers as GET, without a body",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "Exact canonical path from the page index, including the trailing slash. Omit to list pages.",
            "schema": {
              "type": "string"
            },
            "example": "/cyber-lab/"
          }
        ],
        "responses": {
          "200": {
            "description": "Page index or known public page."
          },
          "404": {
            "description": "Unknown or non-public page path."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Page": {
        "type": "object",
        "required": [
          "path",
          "title",
          "url"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "PageContent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Page"
          },
          {
            "type": "object",
            "required": [
              "markdown"
            ],
            "properties": {
              "markdown": {
                "type": "string"
              }
            }
          }
        ]
      },
      "PageIndex": {
        "type": "object",
        "required": [
          "pages"
        ],
        "properties": {
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Page"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error",
          "docs"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}
