{
  "openapi": "3.1.0",
  "info": {
    "title": "First Aid Course Sydney CBD — public read API",
    "summary": "Read-only HTTP endpoints describing first aid and CPR course information for Sydney CBD.",
    "description": "Machine-readable description of the public, read-only endpoints of the First Aid Course Sydney CBD site, operated by Australia Wide First Aid (RTO 31961). All endpoints are GET, require no authentication, and return information about courses, schedules, prices, articles, and glossary terms for this single training location. Enrolment and newsletter sign-up (POST) are intentionally not described here — they are not yet available to programmatic agents.",
    "version": "1.0.0",
    "contact": {
      "name": "Australia Wide First Aid",
      "url": "https://www.australiawidefirstaid.com.au"
    }
  },
  "servers": [
    {
      "url": "https://firstaidcoursesydneycbd.au",
      "description": "First Aid Course Sydney CBD"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getHomepage",
        "summary": "Location homepage",
        "description": "The Sydney CBD homepage: location overview, available courses with prices, and booking links. Supports content negotiation — request `Accept: text/markdown` for a markdown representation, or fetch /index.md directly.",
        "responses": {
          "200": {
            "description": "Homepage",
            "content": {
              "text/html": {},
              "text/markdown": {}
            }
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "operationId": "getHomepageMarkdown",
        "summary": "Homepage as markdown",
        "description": "Markdown alternate of the homepage: location, courses with prices, aggregate rating, booking link, and contact details. Ideal for direct ingestion by language models.",
        "responses": {
          "200": {
            "description": "Homepage in markdown",
            "content": { "text/markdown": {} }
          }
        }
      }
    },
    "/calendar": {
      "get": {
        "operationId": "getCalendar",
        "summary": "Upcoming course sessions",
        "description": "All upcoming scheduled course sessions at Sydney CBD, with dates, times, venues, and prices. Pages carry schema.org Course/CourseInstance/Offer JSON-LD.",
        "responses": {
          "200": {
            "description": "Calendar page",
            "content": { "text/html": {} }
          }
        }
      }
    },
    "/calendar/{course}": {
      "get": {
        "operationId": "getCourseCalendar",
        "summary": "Upcoming sessions for one course",
        "description": "Upcoming scheduled sessions for a single nationally accredited course code.",
        "parameters": [
          {
            "name": "course",
            "in": "path",
            "required": true,
            "description": "Nationally accredited unit of competency code.",
            "schema": {
              "type": "string",
              "enum": ["HLTAID009", "HLTAID011", "HLTAID012"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calendar page for the course",
            "content": { "text/html": {} }
          },
          "404": { "description": "Unknown course code" }
        }
      }
    },
    "/resources": {
      "get": {
        "operationId": "listResources",
        "summary": "First aid resource library",
        "description": "Index of first aid and CPR reference articles.",
        "parameters": [
          {
            "name": "genre",
            "in": "query",
            "required": false,
            "description": "Filter articles by topic/genre slug.",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Resource library page",
            "content": { "text/html": {} }
          }
        }
      }
    },
    "/resources/{slug}": {
      "get": {
        "operationId": "getArticle",
        "summary": "A single resource article",
        "description": "A first aid reference article. Pages carry schema.org Article + BreadcrumbList JSON-LD.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "URL slug of the article.",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Article page",
            "content": { "text/html": {} }
          },
          "404": { "description": "Unknown article slug" }
        }
      }
    },
    "/glossary": {
      "get": {
        "operationId": "getGlossary",
        "summary": "First aid glossary index",
        "description": "Index of first aid and emergency-care terminology.",
        "responses": {
          "200": {
            "description": "Glossary index page",
            "content": { "text/html": {} }
          }
        }
      }
    },
    "/glossary/{term}": {
      "get": {
        "operationId": "getGlossaryTerm",
        "summary": "A single glossary term",
        "description": "Definition of one first aid term. Pages carry schema.org DefinedTerm + BreadcrumbList JSON-LD.",
        "parameters": [
          {
            "name": "term",
            "in": "path",
            "required": true,
            "description": "URL slug of the glossary term.",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Glossary term page",
            "content": { "text/html": {} }
          },
          "404": { "description": "Unknown term" }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "llmstxt.org site summary",
        "description": "Concise markdown summary of the site with links to key documents, per the llmstxt.org convention.",
        "responses": {
          "200": {
            "description": "llms.txt",
            "content": { "text/plain": {} }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullTxt",
        "summary": "llmstxt.org full reference",
        "description": "Context-window-friendly comprehensive markdown reference: full course descriptions, upcoming sessions, and the location FAQ.",
        "responses": {
          "200": {
            "description": "llms-full.txt",
            "content": { "text/plain": {} }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "XML sitemap",
        "description": "Machine-readable index of all canonical URLs on this domain.",
        "responses": {
          "200": {
            "description": "Sitemap",
            "content": { "application/xml": {} }
          }
        }
      }
    }
  }
}
