Gateway

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

  1. Centralized Authentication and Authorization
    • JWT-based user authentication
    • Role-based authorization
    • Secure session management
  2. Game and Betting Operations
    • Bet history tracking
    • Live game results
    • Player statistics and rankings
    • Real-time data streaming (SSE)
  3. Financial Operations and Integrations
    • Wallet integration
    • Staking operations
    • Reward and referral system
    • Price feed service
  4. 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 history
  • GET /game/global-bet-history - Retrieves global betting history
  • GET /game/chart - Retrieves game statistics charts
  • GET /game/live-wins - Retrieves live winning list
  • GET /game/stats-by-player - Retrieves player statistics

Bankroll Endpoints

  • GET /bankroll/pool-list - Retrieves pool list
  • GET /bankroll/vault - Retrieves vault information

Statistic Endpoints

  • GET /statistic/stats - Retrieves platform statistics
  • GET /statistic/dashboard-stats - Retrieves dashboard statistics
  • GET /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 history
  • GET /referral/code-volume-and-rewards - Retrieves referral codes and rewards

API Documentation

Swagger UI (opens in a new tab)