{"openapi":"3.1.0","info":{"title":"11xplay Session API","version":"1.0.0","description":"Cookie-backed session endpoints used by the 11xplay.cc web app for login, demo, status, and logout."},"servers":[{"url":"https://11xplay.cc"}],"paths":{"/api/session":{"get":{"operationId":"getSession","summary":"Current session","responses":{"200":{"description":"Authenticated session","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"user":{"type":"object"},"stakes":{}}}}}},"401":{"description":"Not authenticated"}}},"post":{"operationId":"createSession","summary":"Login or demo login","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["login","demo"]},"username":{"type":"string"},"password":{"type":"string"}}}}}},"responses":{"200":{"description":"Session created"},"400":{"description":"Missing credentials"},"401":{"description":"Invalid credentials"},"502":{"description":"Upstream unavailable"}}},"delete":{"operationId":"deleteSession","summary":"Logout","responses":{"200":{"description":"Session cleared"}}}}}}