JustBet Gateway Service
Application Overview
The JustBet Gateway service is the central API gateway for the blockchain-based betting platform. This service handles and routes all client requests and coordinates communication with other microservices.
End Users
- Web and mobile application users
- Betting platform players
- Platform administrators and operators
- Third-party integration developers
Critical Features
- Centralized Authentication and Authorization
- JWT-based user authentication
- Role-based authorization
- Secure session management
- Game and Betting Operations
- Bet history tracking
- Live game results
- Player statistics and rankings
- Real-time data streaming (SSE)
- Financial Operations and Integrations
- Wallet integration
- Staking operations
- Reward and referral system
- Price feed service
- Workflow Improvements
- Centralized logging and monitoring
- Automatic API documentation (Swagger)
- Caching strategies
- Error handling and reporting
- Real-time data streaming
API Endpoints
GET /game/bet-history- Retrieves user's betting historyGET /game/global-bet-history- Retrieves global betting historyGET /game/chart- Retrieves game statistics chartsGET /game/live-wins- Retrieves live winning listGET /game/stats-by-player- Retrieves player statistics
Bankroll Endpoints
GET /bankroll/pool-list- Retrieves pool listGET /bankroll/vault- Retrieves vault information
Statistic Endpoints
GET /statistic/stats- Retrieves platform statisticsGET /statistic/dashboard-stats- Retrieves dashboard statisticsGET /statistic/volume-leaderboard-list- Retrieves volume-based leaderboard
Currency Endpoints
GET /currency/get-last-prices- Retrieves current token prices
Referral Endpoints
GET /referral/referral-history/:wallet- Retrieves referral historyGET /referral/code-volume-and-rewards- Retrieves referral codes and rewards