{
  "openapi": "3.1.0",
  "info": {
    "title": "The Brett Academy Public & Agent API",
    "version": "2.0.0",
    "description": "Junior cricket coaching curriculum, live slot availability, fee calculator, and MCP JSON-RPC 2.0 server."
  },
  "x-service-info": {
    "categories": [
      "education",
      "sports",
      "coaching"
    ]
  },
  "servers": [
    {
      "url": "https://thebrettacademy.co.za"
    },
    {
      "url": "https://api.thebrettacademy.co.za"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "invokeMcpTool",
        "summary": "Invoke Model Context Protocol JSON-RPC 2.0 methods (initialize, tools/list, tools/call)",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response payload"
          }
        }
      },
      "get": {
        "operationId": "getMcpServerHealth",
        "summary": "Check MCP server health and transport metadata",
        "responses": {
          "200": {
            "description": "MCP server health status"
          }
        }
      }
    },
    "/api/inventory/check": {
      "get": {
        "operationId": "checkCurriculumAndSlotInventory",
        "summary": "Retrieve live D1 athlete enrollment counts, course pricing, and Pretoria East / Centurion branch status",
        "responses": {
          "200": {
            "description": "Live academy inventory and telemetry"
          }
        }
      }
    },
    "/api/checkout/initiate": {
      "post": {
        "operationId": "initiateCurriculumEnrollmentPayment",
        "summary": "Initiate junior cricket curriculum enrollment checkout",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": "490.00",
          "currency": "ZAR",
          "description": "7-Week Junior Cricket Coaching Curriculum All-Access Pass (Once-Off Lifetime Access, Value R1,450)"
        },
        "responses": {
          "200": {
            "description": "Checkout session initiated"
          }
        }
      }
    }
  }
}