{
  "openapi": "3.0.3",
  "info": {
    "title": "GLANZZ Beauty-Studio API",
    "version": "1.0.0",
    "description": "Öffentliche Endpunkte des GLANZZ Beauty-Studio Ludwigsburg: Chat mit der Assistentin Lilly und Liveness-Status. Terminbuchung erfolgt per Telefon oder WhatsApp, nicht über die API.",
    "contact": { "email": "info@glanzz.de" }
  },
  "servers": [{ "url": "https://glanzz.de" }],
  "paths": {
    "/api/": {
      "get": {
        "summary": "API-Index / Discovery",
        "responses": {
          "200": { "description": "JSON-Index mit Endpunkten, CORS, Rate-Limit und Payment-Hinweis." }
        }
      }
    },
    "/api/chat.php": {
      "post": {
        "summary": "Chat mit Lilly (SSE-Stream)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "role": { "type": "string", "enum": ["user", "assistant"] },
                        "content": { "type": "string" }
                      }
                    }
                  },
                  "lang": { "type": "string", "example": "de" }
                },
                "required": ["messages"]
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Server-Sent-Events Stream (text/event-stream) mit Antwort-Deltas." }
        }
      }
    },
    "/api/status.php": {
      "get": {
        "summary": "Liveness-Check",
        "responses": {
          "200": {
            "description": "Status OK",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    }
  }
}
