{
  "openapi": "3.1.0",
  "info": {
    "title": "Chilli Lovers API",
    "description": "Strojově čitelná specifikace veřejných koncových bodů, dokumentace a AI rozhraní pro Chilli Lovers Praha Karlín (zážitkové pokoje pro páry).",
    "version": "1.1.0",
    "contact": {
      "name": "Chilli Lovers",
      "url": "https://chillilovers.cz",
      "email": "info@chillilovers.cz",
      "telephone": "+420722068519"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://chillilovers.cz/obchodni-podminky"
    }
  },
  "servers": [
    {
      "url": "https://chillilovers.cz/api/v1",
      "description": "Verzované REST API v1 Chilli Lovers"
    },
    {
      "url": "https://chillilovers.cz",
      "description": "Kořenový server Chilli Lovers"
    }
  ],
  "paths": {
    "/api/v1/rooms": {
      "get": {
        "summary": "Přehled zážitkových pokojů Chilli Lovers (v1)",
        "description": "Vrací strukturovaný JSON seznam všech veřejných pokojů nebo detail konkrétního pokoje podle parametru slug.",
        "operationId": "getV1Rooms",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "description": "Volitelný slug konkrétního pokoje (např. chilli-room, playroom-bdsm-pokoj, dark-ritual-room, shibari-ritual-room)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Úspěšný výpis pokojů nebo detailu pokoje",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": { "type": "integer", "description": "Celkový počet dostupných pokojů" },
                    "rooms": {
                      "type": "array",
                      "items": { "$ref": "#/components/schemas/Room" }
                    },
                    "room": { "$ref": "#/components/schemas/Room" }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Neplatný parametr požadavku",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "404": {
            "description": "Pokoj se zadaným slugem nebyl nalezen",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "405": {
            "description": "Metoda není povolena",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          }
        }
      }
    },
    "/api/v1/pricing": {
      "get": {
        "summary": "Ceník pronájmu zážitkových pokojů (v1)",
        "description": "Vrací hodinové a vícehodinové sazby (60 až 240 minut) v CZK/EUR, zahrnuté služby a platební podmínky.",
        "operationId": "getV1Pricing",
        "parameters": [
          {
            "name": "roomSlug",
            "in": "query",
            "required": false,
            "description": "Volitelný slug pokoje pro filtrování sazeb",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ceník pronájmu a platební pravidla",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["currency", "lastUpdated"],
                  "properties": {
                    "currency": { "type": "string", "example": "CZK" },
                    "lastUpdated": { "type": "string", "example": "2026-11-22" },
                    "rooms": {
                      "type": "array",
                      "items": { "$ref": "#/components/schemas/RoomPricing" }
                    },
                    "pricing": { "$ref": "#/components/schemas/RoomPricing" },
                    "includedServices": {
                      "type": "array",
                      "items": { "type": "string" }
                    },
                    "paymentTerms": {
                      "type": "object",
                      "properties": {
                        "onlineBooking": { "type": "string" },
                        "lastMinute": { "type": "string" },
                        "cancellation": { "type": "string" }
                      }
                    },
                    "priceListUrl": { "type": "string", "example": "https://chillilovers.cz/cenik" }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Neplatný parametr požadavku",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "404": {
            "description": "Ceník pokoje nebyl nalezen",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "405": {
            "description": "Metoda není povolena",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimit-Limit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimit-Remaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimit-Reset" },
              "API-Version": { "$ref": "#/components/headers/API-Version" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Stručný rozcestník pro AI agenty",
        "description": "Klíčová fakta o provozovateli, pokojích a kontaktech ve formátu Markdown.",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Stručný přehled ve formátu text/markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "summary": "Úplná znalostní báze pro AI modely",
        "description": "Kompletní dokumentace služeb, pravidel, hygieny, FAQ a ceníku.",
        "operationId": "getLlmsFullTxt",
        "responses": {
          "200": {
            "description": "Úplná znalostní báze ve formátu text/markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/pricing.md": {
      "get": {
        "summary": "Strojově čitelný ceník pronájmu pokojů",
        "description": "Přehledná tabulka cen na 60 až 240 minut v Markdownu s YAML frontmatter.",
        "operationId": "getPricingMd",
        "responses": {
          "200": {
            "description": "Ceník pokojů ve formátu text/markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/faq.md": {
      "get": {
        "summary": "Často kladené otázky (FAQ) v Markdownu",
        "description": "Strukturované otázky a odpovědi k diskrétnímu příchodu, soukromí, hygieně a platbám.",
        "operationId": "getFaqMd",
        "responses": {
          "200": {
            "description": "FAQ ve formátu text/markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/ard.json": {
      "get": {
        "summary": "Agentic Resource Discovery (ARD v0.91) manifest",
        "description": "Katalog zdrojů a nástrojů podle standardu AgentReady.",
        "operationId": "getArdManifest",
        "responses": {
          "200": {
            "description": "ARD manifest",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ArdManifest" }
              }
            }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "summary": "AI Catalog manifest",
        "description": "Strojový katalog nástrojů WebMCP a zdrojů.",
        "operationId": "getAiCatalog",
        "responses": {
          "200": {
            "description": "AI Catalog manifest",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/AiCatalogManifest" }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "summary": "Model Context Protocol (MCP) server card",
        "description": "Metadata vzdáleného MCP serveru Chilli Lovers pro AI agenty.",
        "operationId": "getMcpServerCard",
        "responses": {
          "200": {
            "description": "MCP server card",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/McpServerCard" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "headers": {
      "RateLimit-Limit": {
        "description": "Maximální počet povolených požadavků za časové okno (60)",
        "schema": { "type": "string", "example": "60" }
      },
      "RateLimit-Remaining": {
        "description": "Počet zbývajících požadavků v aktuálním okně",
        "schema": { "type": "string", "example": "59" }
      },
      "RateLimit-Reset": {
        "description": "Doba v sekundách do resetu limitu",
        "schema": { "type": "string", "example": "60" }
      },
      "API-Version": {
        "description": "Verze API",
        "schema": { "type": "string", "example": "1.0.0" }
      }
    },
    "schemas": {
      "Room": {
        "type": "object",
        "required": ["id", "slug", "name", "shortDesc", "capacity", "hourlyRate", "amenities", "url"],
        "properties": {
          "id": { "type": "string", "example": "chilli-room" },
          "slug": { "type": "string", "example": "chilli-room" },
          "name": { "type": "string", "example": "Chilli Room" },
          "shortDesc": { "type": "string", "example": "Romantický a smyslný pokoj pro páry..." },
          "capacity": { "type": "integer", "example": 2 },
          "sizeM2": { "type": ["integer", "null"], "example": 22 },
          "hourlyRate": { "type": "integer", "example": 700 },
          "priceVariants": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["duration", "priceCZK"],
              "properties": {
                "duration": { "type": "integer", "example": 60 },
                "priceCZK": { "type": "integer", "example": 700 }
              }
            }
          },
          "amenities": {
            "type": "array",
            "items": { "type": "string" },
            "example": ["Vlastní sprcha", "Ručníky a župany", "Intimní kosmetika"]
          },
          "url": { "type": "string", "example": "https://chillilovers.cz/pokoje/chilli-room" }
        }
      },
      "RoomPricing": {
        "type": "object",
        "required": ["roomSlug", "roomName", "capacity", "tiers", "url"],
        "properties": {
          "roomSlug": { "type": "string", "example": "chilli-room" },
          "roomName": { "type": "string", "example": "Chilli Room" },
          "capacity": { "type": "integer", "example": 2 },
          "tiers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["durationMinutes", "priceCZK"],
              "properties": {
                "durationMinutes": { "type": "integer", "example": 60 },
                "priceCZK": { "type": "integer", "example": 700 },
                "priceEUR": { "type": "integer", "example": 29 }
              }
            }
          },
          "url": { "type": "string", "example": "https://chillilovers.cz/pokoje/chilli-room" }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message", "hint"],
            "properties": {
              "code": {
                "type": "string",
                "example": "METHOD_NOT_ALLOWED"
              },
              "message": {
                "type": "string",
                "example": "Metoda POST není povolena. Tento koncový bod podporuje pouze GET."
              },
              "hint": {
                "type": "string",
                "example": "Odešlete požadavek metodou HTTP GET."
              }
            }
          }
        }
      },
      "ArdManifest": {
        "type": "object",
        "required": ["ard_version", "provider", "resources", "tools"],
        "properties": {
          "ard_version": { "type": "string", "example": "0.91" },
          "provider": {
            "type": "object",
            "required": ["name", "url", "description"],
            "properties": {
              "name": { "type": "string", "example": "Chilli Lovers" },
              "url": { "type": "string", "example": "https://chillilovers.cz" },
              "description": { "type": "string" }
            }
          },
          "resources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["uri", "name", "mimeType"],
              "properties": {
                "uri": { "type": "string" },
                "name": { "type": "string" },
                "mimeType": { "type": "string" },
                "description": { "type": "string" }
              }
            }
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["name", "description"],
              "properties": {
                "name": { "type": "string" },
                "description": { "type": "string" },
                "endpoint": { "type": "string" },
                "method": { "type": "string" }
              }
            }
          }
        }
      },
      "AiCatalogManifest": {
        "type": "object",
        "required": ["schema_version", "entity", "services"],
        "properties": {
          "schema_version": { "type": "string", "example": "1.0.0" },
          "entity": {
            "type": "object",
            "required": ["name", "url"],
            "properties": {
              "name": { "type": "string", "example": "Chilli Lovers" },
              "url": { "type": "string", "example": "https://chillilovers.cz" },
              "description": { "type": "string" }
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["id", "name", "endpoints"],
              "properties": {
                "id": { "type": "string" },
                "name": { "type": "string" },
                "description": { "type": "string" },
                "endpoints": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": ["path", "method", "format"],
                    "properties": {
                      "path": { "type": "string" },
                      "method": { "type": "string" },
                      "format": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "McpServerCard": {
        "type": "object",
        "required": ["name", "description", "version", "endpoint", "capabilities", "tools"],
        "properties": {
          "$schema": { "type": "string" },
          "name": { "type": "string", "example": "chilli-lovers-mcp" },
          "description": { "type": "string" },
          "version": { "type": "string", "example": "1.0.0" },
          "endpoint": { "type": "string", "example": "/api/mcp" },
          "url": { "type": "string", "example": "https://chillilovers.cz/api/mcp" },
          "capabilities": {
            "type": "object",
            "required": ["tools", "resources"],
            "properties": {
              "tools": { "type": "boolean", "example": true },
              "resources": { "type": "boolean", "example": true },
              "prompts": { "type": "boolean", "example": false }
            }
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["name", "description"],
              "properties": {
                "name": { "type": "string" },
                "description": { "type": "string" },
                "annotations": { "type": "object" },
                "inputSchema": { "type": "object" }
              }
            }
          },
          "resources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["uri", "name", "mimeType"],
              "properties": {
                "uri": { "type": "string" },
                "name": { "type": "string" },
                "description": { "type": "string" },
                "mimeType": { "type": "string" }
              }
            }
          }
        }
      }
    }
  }
}
