{
  "openapi": "3.1.0",
  "info": {
    "title": "Stix Muse API",
    "version": "1.0.0",
    "description": "Read a connected golfer's Edge Index, recent rounds, and public event boards. No GPS. No payments."
  },
  "servers": [
    { "url": "https://www.golfstix.net/api/muse" }
  ],
  "security": [{ "museToken": [] }],
  "components": {
    "securitySchemes": {
      "museToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "stix_muse_",
        "description": "Personal token created in the Stix app under Profile → Muse API."
      }
    }
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Catalog or routed op",
        "parameters": [
          {
            "name": "op",
            "in": "query",
            "schema": { "type": "string", "enum": ["me", "rounds", "event"] }
          },
          {
            "name": "event_id",
            "in": "query",
            "schema": { "type": "string", "format": "uuid" }
          }
        ],
        "responses": {
          "200": { "description": "JSON payload with ok: true" },
          "401": { "description": "Missing or invalid token" }
        }
      }
    }
  }
}
