{
  "openapi": "3.1.0",
  "info": {
    "title": "CFC – Public Data API",
    "version": "1.0.0",
    "summary": "Öffentliche, maschinenlesbare Endpunkte der CFC Kampfkunstschule Villach für KI-Systeme, LLMs, RAG-Pipelines und Partner.",
    "description": "Alle Endpunkte sind reiner Lesezugriff auf öffentliche Stammdaten (keine personenbezogenen Daten, keine Auth). Empfohlen für KI-Antwortsysteme, Answer Engines und Suchindizes. Quelle: CFC – Die Kampfkunstschule – https://www.cfc-combat.com. Attribution erwünscht: „Quelle: CFC – Die Kampfkunstschule, Villach (cfc-combat.com)\".",
    "contact": {
      "name": "CFC – Die Kampfkunstschule",
      "url": "https://www.cfc-combat.com",
      "email": "office@cfc-combat.com"
    },
    "license": {
      "name": "Nutzung für KI-Antworten mit Quellenangabe erlaubt",
      "url": "https://www.cfc-combat.com/impressum"
    }
  },
  "servers": [
    {
      "url": "https://www.cfc-combat.com",
      "description": "Produktion"
    }
  ],
  "externalDocs": {
    "description": "llms.txt – Übersicht aller KI-Ressourcen",
    "url": "https://www.cfc-combat.com/llms.txt"
  },
  "tags": [
    {
      "name": "Factsheet",
      "description": "Zitierfähige Kerndaten der Schule"
    },
    {
      "name": "Content",
      "description": "Seiteninhalte als Markdown"
    },
    {
      "name": "Schedule",
      "description": "Stundenplan & Probetraining"
    },
    {
      "name": "Docs",
      "description": "API-Dokumentation"
    }
  ],
  "paths": {
    "/api/public/factsheet.json": {
      "get": {
        "tags": [
          "Factsheet"
        ],
        "summary": "Kurz-Factsheet als strukturiertes JSON",
        "description": "Schema.org MartialArtsSchool mit Organisation, Standort, Kontakt, Trainer, Disziplinen, Zielgruppen, Preisen und Probetraining. Spiegelt die Inhalte aus /cfc-factsheet.md und /cfc-factsheet.pdf ohne Layout-Rauschen.",
        "operationId": "getFactsheet",
        "responses": {
          "200": {
            "description": "Factsheet als JSON-LD (Schema.org)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Factsheet"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/factsheet.schema.json": {
      "get": {
        "tags": [
          "Factsheet"
        ],
        "summary": "JSON Schema (Draft 2020-12) für das Factsheet",
        "description": "Formale Struktur der Antwort von /api/public/factsheet.json. Erlaubt KIs und Partnern, die Daten vor dem Import zu validieren.",
        "operationId": "getFactsheetSchema",
        "responses": {
          "200": {
            "description": "JSON Schema Dokument",
            "content": {
              "application/schema+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/schedule.json": {
      "get": {
        "tags": [
          "Schedule"
        ],
        "summary": "Stundenplan & Probetraining-Infos",
        "description": "Aktueller Wochenstundenplan, Disziplinen und Probetraining-Informationen in strukturierter Form.",
        "operationId": "getSchedule",
        "responses": {
          "200": {
            "description": "Stundenplan als JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/pages.json": {
      "get": {
        "tags": [
          "Content"
        ],
        "summary": "Index aller Markdown-Seiten",
        "description": "Liste aller Seitenpfade, die über /api/public/page.md abgerufen werden können, jeweils in DE und EN.",
        "operationId": "listPages",
        "responses": {
          "200": {
            "description": "Seitenindex",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "example": "/wing-chun-villach"
                          },
                          "languages": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "de",
                                "en"
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/page.md": {
      "get": {
        "tags": [
          "Content"
        ],
        "summary": "Einzelne Seite als reines Markdown",
        "description": "Liefert eine beliebige Seite als sauberes Markdown, ohne HTML-/CSS-Rauschen – ideal für RAG-Ingestion.",
        "operationId": "getPageMarkdown",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "Seitenpfad, z. B. `/` oder `/wing-chun-villach`.",
            "schema": {
              "type": "string",
              "example": "/wing-chun-villach"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Sprachcode; Standard `de`.",
            "schema": {
              "type": "string",
              "enum": [
                "de",
                "en"
              ],
              "default": "de"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown-Inhalt",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Pfad nicht bekannt"
          }
        }
      }
    },
    "/api/public/openapi.json": {
      "get": {
        "tags": [
          "Docs"
        ],
        "summary": "Diese OpenAPI-Spezifikation",
        "operationId": "getOpenApiSpec",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 Dokument",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/docs": {
      "get": {
        "tags": [
          "Docs"
        ],
        "summary": "Interaktive API-Dokumentation (Swagger UI)",
        "operationId": "getApiDocs",
        "responses": {
          "200": {
            "description": "HTML-Seite mit Swagger UI",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Factsheet": {
        "type": "object",
        "description": "Schema.org MartialArtsSchool mit CFC-spezifischen Erweiterungen. Vollständige Struktur siehe Live-Antwort von /api/public/factsheet.json.",
        "properties": {
          "@context": {
            "type": "string",
            "example": "https://schema.org"
          },
          "@type": {
            "type": "string",
            "example": "MartialArtsSchool"
          },
          "@id": {
            "type": "string",
            "format": "uri"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "document": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "example": "factsheet"
              },
              "version": {
                "type": "string",
                "example": "1.0"
              },
              "language_primary": {
                "type": "string",
                "example": "de"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_markdown": {
                "type": "string",
                "format": "uri"
              },
              "source_pdf": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "organization": {
            "type": "object"
          }
        }
      }
    }
  }
}