{
  "openapi": "3.1.0",
  "info": {
    "title": "Duftpuls Daten",
    "version": "1.0.0",
    "description": "Offene, nur lesbare Daten des deutschsprachigen Duft-Magazins. Feste Dateien, kein Schlüssel nötig, täglich neu gebaut. Nutzung: Suche und KI-Antworten mit Link auf die Quelle erwünscht, KI-Training nicht (Content-Signal: search=yes, ai-input=yes, ai-train=no).",
    "contact": {
      "email": "kontakt@duftpuls.de"
    }
  },
  "externalDocs": {
    "url": "https://duftpuls.de/so-arbeiten-wir-mit-ki/"
  },
  "servers": [
    {
      "url": "https://duftpuls.de/api/v1"
    }
  ],
  "paths": {
    "/artikel.json": {
      "get": {
        "operationId": "artikel",
        "summary": "Artikel",
        "description": "Alle veröffentlichten Magazin-Artikel mit Kurzantwort, häufigen Fragen und Quellen.",
        "responses": {
          "200": {
            "description": "Artikel",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stand",
                    "anzahl",
                    "eintraege"
                  ],
                  "properties": {
                    "stand": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "anzahl": {
                      "type": "integer"
                    },
                    "eintraege": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/artikel"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/lexikon.json": {
      "get": {
        "operationId": "lexikon",
        "summary": "Lexikon",
        "description": "Fachbegriffe und Duftnoten mit kurzer Definition.",
        "responses": {
          "200": {
            "description": "Lexikon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stand",
                    "anzahl",
                    "eintraege"
                  ],
                  "properties": {
                    "stand": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "anzahl": {
                      "type": "integer"
                    },
                    "eintraege": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/lexikon"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/marken.json": {
      "get": {
        "operationId": "marken",
        "summary": "Marken",
        "description": "Duftmarken mit Herkunft, Gründung und Gründern.",
        "responses": {
          "200": {
            "description": "Marken",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stand",
                    "anzahl",
                    "eintraege"
                  ],
                  "properties": {
                    "stand": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "anzahl": {
                      "type": "integer"
                    },
                    "eintraege": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/marken"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/duefte.json": {
      "get": {
        "operationId": "duefte",
        "summary": "Düfte",
        "description": "Einzelne Düfte mit Marke, Jahr, Parfümeuren, Konzentrationen und Duftnoten.",
        "responses": {
          "200": {
            "description": "Düfte",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stand",
                    "anzahl",
                    "eintraege"
                  ],
                  "properties": {
                    "stand": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "anzahl": {
                      "type": "integer"
                    },
                    "eintraege": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/duefte"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/parfuemeure.json": {
      "get": {
        "operationId": "parfuemeure",
        "summary": "Parfümeure",
        "description": "Parfümeurinnen und Parfümeure mit Werdegang.",
        "responses": {
          "200": {
            "description": "Parfümeure",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stand",
                    "anzahl",
                    "eintraege"
                  ],
                  "properties": {
                    "stand": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "anzahl": {
                      "type": "integer"
                    },
                    "eintraege": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/parfuemeure"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "artikel": {
        "type": "object",
        "required": [
          "id",
          "titel",
          "beschreibung",
          "kurzantwort",
          "kategorie",
          "thema",
          "url",
          "veroeffentlicht",
          "faq",
          "quellen"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "titel": {
            "type": "string"
          },
          "beschreibung": {
            "type": "string"
          },
          "kurzantwort": {
            "type": "string"
          },
          "kategorie": {
            "type": "string"
          },
          "thema": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "veroeffentlicht": {
            "type": "string",
            "format": "date"
          },
          "aktualisiert": {
            "type": "string",
            "format": "date"
          },
          "faq": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "frage": {
                  "type": "string"
                },
                "antwort": {
                  "type": "string"
                }
              }
            }
          },
          "quellen": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "titel": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "lexikon": {
        "type": "object",
        "required": [
          "id",
          "begriff",
          "typ",
          "kurzdefinition",
          "beschreibung",
          "url",
          "aktualisiert",
          "quellen"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "begriff": {
            "type": "string"
          },
          "typ": {
            "type": "string"
          },
          "kurzdefinition": {
            "type": "string"
          },
          "beschreibung": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "aktualisiert": {
            "type": "string",
            "format": "date"
          },
          "quellen": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "titel": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "marken": {
        "type": "object",
        "required": [
          "id",
          "name",
          "land",
          "gegruendet",
          "gruender",
          "kurzantwort",
          "url",
          "aktualisiert",
          "quellen"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "land": {
            "type": "string"
          },
          "gegruendet": {
            "type": "integer"
          },
          "gruender": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "kurzantwort": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "aktualisiert": {
            "type": "string",
            "format": "date"
          },
          "quellen": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "titel": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "duefte": {
        "type": "object",
        "required": [
          "id",
          "name",
          "marke",
          "jahr",
          "parfuemeure",
          "konzentrationen",
          "noten",
          "kurzantwort",
          "url",
          "aktualisiert",
          "quellen"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "marke": {
            "type": "string"
          },
          "jahr": {
            "type": "integer"
          },
          "parfuemeure": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "konzentrationen": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "noten": {
            "type": "object",
            "description": "Entweder kopf/herz/basis oder liste.",
            "properties": {
              "kopf": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "herz": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "basis": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "liste": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "duftfamilie": {
            "type": "string"
          },
          "kurzantwort": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "aktualisiert": {
            "type": "string",
            "format": "date"
          },
          "quellen": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "titel": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "parfuemeure": {
        "type": "object",
        "required": [
          "id",
          "name",
          "bezeichnung",
          "kurzantwort",
          "url",
          "aktualisiert",
          "quellen"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "bezeichnung": {
            "type": "string"
          },
          "kurzantwort": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "aktualisiert": {
            "type": "string",
            "format": "date"
          },
          "quellen": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "titel": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    }
  }
}