{"name":"BetonPoker Backend API","version":"1.0.0","endpoints":{"api":"/api","health":"/api/health","websocket":{"game":"/game","lobby":"/lobby"}},"documentation":{"httpEndpoints":["GET  /api/health - Health check","GET  /api/game/types - Get all game types","GET  /api/game/:gameTypeId/initial - Get initial game state","GET  /api/game/:gameTypeId/round - Get current round","GET  /api/game/:gameTypeId/config - Get game configuration","GET  /api/game/history - Get round history","POST /api/bets - Place a bet","GET  /api/bets/history - Get user bet history","GET  /api/bets/:betId - Get bet details","GET  /api/bets/round/:roundId - Get round bets","GET  /api/users/balance - Get user balance","GET  /api/users/profile - Get user profile","POST /api/users/balance - Update balance","GET  /api/users/freebets - Get free bets","POST /api/users/freebets - Add free bet","GET  /api/lobby - Get lobby state","GET  /api/lobby/games - Get games with user counts","GET  /api/lobby/winners - Get current winners","GET  /api/lobby/leaderboard - Get leaderboard","GET  /api/statistics - Get game statistics","GET  /api/statistics/analysis/hot-cold - Hot/cold numbers","GET  /api/statistics/analysis/streaks - Winning streaks","GET  /api/statistics/analysis/payouts - Payout stats"],"websocketEvents":{"clientToServer":["GetInitialState - Get game initial state","DoBet - Place a bet","GetBalance - Get user balance","LeaveGame - Leave current game","GetLobbyState - Get lobby state","LeaveLobby - Leave lobby","GetUsersCount - Get active users count"],"serverToClient":["OnGetInitialStateResult - Initial state response","OnRoundStarted - New round started","OnBetsClosed - Betting window closed","OnDoBetResult - Bet placement result","OnDoBetResultValidation - Bet validation result","OnResultReport - Card reveal during round","OnRoundFinished - Round completed with results","OnGetBalanceResult - Balance update","OnLobbyUsersCount - User count update","OnReconnected - Connection restored","OnReconnecting - Attempting to reconnect","OnError - Error occurred"]}}}