{
  "openapi": "3.1.0",
  "info": {
    "title": "Ladenfund API",
    "version": "1.0.0",
    "description": "Verifizierte Daten inhabergeführter Läden: Stammdaten, Öffnungszeiten, Sortiment, Angebote der Woche, Veranstaltungen, FAQ. Statisch erzeugt, ohne Anmeldung.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://ladenfund.de"
    }
  ],
  "paths": {
    "/api/v1/staedte.json": {
      "get": {
        "summary": "Alle Städte",
        "responses": {
          "200": {
            "description": "Städte mit Händler- und Angebotszahl",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/{stadt}/index.json": {
      "get": {
        "summary": "Händler und Kategorien einer Stadt",
        "parameters": [
          {
            "name": "stadt",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "goettingen"
          }
        ],
        "responses": {
          "200": {
            "description": "Händler in Kurzform, Kategorien",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/{stadt}/haendler/{slug}.json": {
      "get": {
        "summary": "Vollständiges Händlerprofil",
        "parameters": [
          {
            "name": "stadt",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "goettingen"
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Profil mit gültigen Angeboten, Veranstaltungen der nächsten 30 Tage, Öffnungszeiten, FAQ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/{stadt}/angebote.json": {
      "get": {
        "summary": "Gültige Angebote einer Stadt",
        "parameters": [
          {
            "name": "stadt",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "goettingen"
          }
        ],
        "responses": {
          "200": {
            "description": "Angebote mit Händlerreferenz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/{stadt}/veranstaltungen.json": {
      "get": {
        "summary": "Veranstaltungen der nächsten 30 Tage",
        "parameters": [
          {
            "name": "stadt",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "goettingen"
          }
        ],
        "responses": {
          "200": {
            "description": "Veranstaltungen mit Händlerreferenz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/{stadt}/kategorien.json": {
      "get": {
        "summary": "Kategorien einer Stadt",
        "parameters": [
          {
            "name": "stadt",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "goettingen"
          }
        ],
        "responses": {
          "200": {
            "description": "Kategorien mit Händlerzahl",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}