{
  "openapi": "3.0.0",
  "info": {
    "title": "WC Predict API",
    "version": "1.0.0",
    "description": "Football match probability predictions (Poisson + Dixon-Coles, market-blend, injuries)."
  },
  "servers": [
    {
      "url": "http://localhost:8088"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "paths": {
    "/v1/predict": {
      "get": {
        "summary": "Predict a match",
        "parameters": [
          {
            "name": "home",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "away",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "venue",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "neutral",
                "home"
              ]
            }
          }
        ]
      },
      "post": {
        "summary": "Predict a match with optional odds + injuries",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PredictInput"
              }
            }
          }
        }
      }
    },
    "/v1/predict/batch": {
      "post": {
        "summary": "Predict many matches"
      }
    },
    "/v1/tournaments/wc2026/simulate": {
      "get": {
        "summary": "Monte-Carlo champion probabilities",
        "parameters": [
          {
            "name": "n",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/v1/groups": {
      "get": {
        "summary": "2026 group-stage expected standings"
      }
    },
    "/v1/models/metrics": {
      "get": {
        "summary": "Published backtest metrics"
      }
    }
  },
  "components_schemas_note": "PredictInput: { home, away, venue?, odds?{home,draw,away,over25?,under25?}, injuriesHome?[], injuriesAway?[], blendW? }"
}