{"openapi":"3.1.0","info":{"title":"Chasy Public API","version":"0.0.0","description":"Hourly booking platform for hotels — spa, banya, event halls, day-use rooms. This API is consumed by the embeddable widget, the admin SPA, and external integrators (Gosti CRM, Gorni operations, PMS)."},"servers":[{"url":"https://account.chasy.app","description":"current"}],"components":{"schemas":{"DependencyStatus":{"type":"object","properties":{"ok":{"type":"boolean"},"latencyMs":{"type":["integer","null"],"minimum":0},"error":{"type":["string","null"]}},"required":["ok","latencyMs","error"]},"HealthResponse":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"service":{"type":"string","enum":["chasy-admin"]},"version":{"type":"string"},"uptimeSeconds":{"type":"integer","minimum":0},"now":{"type":"string","format":"date-time"},"env":{"type":"object","properties":{"nodeEnv":{"type":"string"},"hasDatabaseUrl":{"type":"boolean"}},"required":["nodeEnv","hasDatabaseUrl"]},"dependencies":{"type":"object","properties":{"database":{"$ref":"#/components/schemas/DependencyStatus"}},"required":["database"]}},"required":["status","service","version","uptimeSeconds","now","env","dependencies"]}},"parameters":{}},"paths":{"/api/v1/health":{"get":{"tags":["system"],"summary":"Liveness + readiness probe","description":"Reports overall service status and per-dependency readiness. Returns 503 if any critical dependency is degraded.","responses":{"200":{"description":"All dependencies healthy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"503":{"description":"At least one dependency is degraded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}}},"webhooks":{}}