{
  "openapi": "3.1.0",
  "info": {
    "title": "Sportfreunde Uerdingen 1992 e.V. – Public Club & Agentic Discovery API",
    "version": "1.0.0",
    "description": "Statisch ausgelieferte, maschinenlesbare Endpunkte der Sportfreunde Uerdingen 1992 e.V. sowie vorbereitete Request-Schemas für künftige serverseitige Agenten-Aktionen (Probetraining- und Turnieranfragen).",
    "contact": {
      "name": "Sportfreunde Uerdingen 1992 e.V.",
      "email": "mitspielen@sportfreunde-uerdingen.de",
      "url": "https://www.sportfreunde-uerdingen.de/"
    }
  },
  "servers": [
    {
      "url": "https://www.sportfreunde-uerdingen.de",
      "description": "Produktions-Webauftritt (statisches Hosting)"
    }
  ],
  "x-agentic-capabilities": {
    "mode": "read-only-static",
    "actionTransport": "mailto",
    "plannedServerActions": [
      {
        "id": "trialTrainingRequest",
        "futureEndpoint": "/api/trial-request",
        "futureMethod": "POST",
        "currentMailto": "mailto:mitspielen@sportfreunde-uerdingen.de?subject=Besuch%20%2F%20Probetraining%20am%20Samstag%20(Linner%20SV)&body=Hallo%20Sportfreunde%20Uerdingen%2C%0A%0Aich%20w%C3%BCrde%20euch%20gerne%20einmal%20samstags%20zwischen%2011%3A00%20und%2013%3A00%20Uhr%20auf%20der%20Anlage%20des%20Linner%20SV%20(Kurk%C3%B6lner%20Str.%2030)%20besuchen.%0A%0AMein%20Name%3A%20%0AKurze%20Info%20(z.%20B.%20Wunschsamstag)%3A%20%0A%0AViele%20Gr%C3%BC%C3%9Fe",
        "requestSchema": "#/components/schemas/TrialTrainingRequest",
        "requiresHumanConfirmation": true
      },
      {
        "id": "tournamentInquiry",
        "futureEndpoint": "/api/tournament-inquiry",
        "futureMethod": "POST",
        "currentMailto": "mailto:kontakt@sportfreunde-uerdingen.de?subject=Anfrage%20Freundschaftsspiel%20%2F%20Sommer-Hobbyturnier&body=Hallo%20Sportfreunde%20Uerdingen%2C%0A%0Awir%20m%C3%B6chten%20gerne%20ein%20Testspiel%20oder%20eine%20Turnierteilnahme%20anfragen.%0A%0AVerein%20%2F%20Teamname%3A%20%0ADatum%20%2F%20Ort%3A%20%0A%0AViele%20Gr%C3%BC%C3%9Fe",
        "requestSchema": "#/components/schemas/TournamentInquiryRequest",
        "requiresHumanConfirmation": true
      }
    ]
  },
  "paths": {
    "/club.json": {
      "get": {
        "operationId": "getClubProfileJson",
        "summary": "Strukturierte Vereinsdaten abrufen",
        "description": "Liefert sämtliche Vereinsdaten (Trainingszeiten, Beiträge, Satzung/Antrag, Chronik, FAQ, Einzugsgebiet und Kontakte) aus der Single Source of Truth als JSON.",
        "responses": {
          "200": {
            "description": "Vollständiges Vereinsprofil als JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubProfileResponse"
                }
              }
            }
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "operationId": "getClubProfileMarkdown",
        "summary": "Vollständige Vereinsseite als Markdown abrufen",
        "responses": {
          "200": {
            "description": "Vereinsprofil im Markdown-Format",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsSummary",
        "summary": "Kompaktes LLM-Kurzprofil abrufen",
        "responses": {
          "200": {
            "description": "Kompaktes Vereinsprofil gemäß llms.txt Konvention",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "operationId": "getAiCatalog",
        "summary": "Agentic Resource Discovery (ARD v1.0) Katalog abrufen",
        "responses": {
          "200": {
            "description": "ARD v1.0 Katalog aller bereitgestellten Ressourcen",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/assets/aistudio/Aufnahmeantrag_Sportfreunde_Uerdingen_b780e80f.pdf": {
      "get": {
        "operationId": "downloadMembershipApplicationPdf",
        "summary": "Aufnahmeantrag / Mitgliedsantrag als PDF herunterladen",
        "responses": {
          "200": {
            "description": "Aufnahmeantrag PDF",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/assets/aistudio/Satzung_Sportfreunde_Uerdingen_1992_eV_7Ausgabe_261125_205012_ee4a8fe5.pdf": {
      "get": {
        "operationId": "downloadClubStatutesPdf",
        "summary": "Vereinssatzung als PDF herunterladen",
        "responses": {
          "200": {
            "description": "Vereinssatzung PDF (7. Ausgabe)",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClubProfileResponse": {
        "type": "object",
        "required": [
          "schemaVersion",
          "club",
          "legal",
          "training",
          "membership",
          "documents",
          "faq",
          "timeline",
          "contactChannels"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "example": "1.0.0"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "club": {
            "type": "object"
          },
          "legal": {
            "type": "object"
          },
          "training": {
            "type": "object"
          },
          "membership": {
            "type": "object"
          },
          "documents": {
            "type": "object"
          },
          "annualEvents": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "catchmentAreas": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "faq": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "question": {
                  "type": "string"
                },
                "answer": {
                  "type": "string"
                }
              }
            }
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "contactChannels": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "agenticEndpoints": {
            "type": "object"
          }
        }
      },
      "TrialTrainingRequest": {
        "type": "object",
        "description": "Vorbereitetes Eingabeschema für eine künftige Probetraining-Anfrage über ein dynamisches Backend oder MCP-Tool.",
        "required": [
          "name",
          "email",
          "isAtLeast16"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "description": "Vor- und Nachname des Gastspielers"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Antwort-E-Mail-Adresse"
          },
          "preferredSaturday": {
            "type": "string",
            "format": "date",
            "description": "Gewünschter Samstag für das Probetraining"
          },
          "isAtLeast16": {
            "type": "boolean",
            "description": "Bestätigung über Mindestalter 16 Jahre (U18 nur mit Eltern-Einverständnis)"
          },
          "hasParentalConsent": {
            "type": "boolean",
            "description": "Erforderlich bei Minderjährigen (16–17 Jahre)"
          },
          "note": {
            "type": "string",
            "maxLength": 500,
            "description": "Optionale kurze Nachricht an das Trainerteam"
          }
        }
      },
      "TournamentInquiryRequest": {
        "type": "object",
        "description": "Vorbereitetes Eingabeschema für Turnier- oder Testspielanfragen von Freizeitmannschaften.",
        "required": [
          "teamName",
          "contactEmail",
          "inquiryType"
        ],
        "properties": {
          "teamName": {
            "type": "string",
            "minLength": 2,
            "description": "Name der Freizeit- oder Thekenmannschaft"
          },
          "contactEmail": {
            "type": "string",
            "format": "email"
          },
          "inquiryType": {
            "type": "string",
            "enum": [
              "summer-tournament",
              "friendly-match"
            ]
          },
          "preferredDate": {
            "type": "string",
            "format": "date"
          },
          "location": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "maxLength": 1000
          }
        }
      }
    }
  }
}
