/papirodds--api

API for Papirodds in Spring

Primary LanguageJava

Papirodds

TODO's

  • Add maps to Match object and HLTV-API
  • Add avatar logos to player object
  • Modify HLTV api to Be able to get details from on-going or not yet started matches

Endpoints

  • Get Sorted Scores for current contest
  • Validate user using username + validation code
  • POST Match, team, players, thresholds entity
  • GET active matches
  • GET matches from HLTV
  • Allow edit match odds
  • Add odds per map
  • HLTV-API: Get match details show bo3/bo1.
  • Add enum to entity as well (enum ordinal)
  • Consider saving in memory last fetch of all hltv Api requests or limit somehow. Store 10 min ish

Scheduler

  • Run Every 45 minutes
  • For every active match Id fetch match details
  • If finished: check user odds compare to results, Update scores, set validated,
    • Only check matches that are to be played within the before/after 2 hours

Future? Update Per map?