Scores (:3004)

Scores

distributeScores (post)

  • route: api/commands/scores/distributeScores
  • req:
    • JSON:
      • QueueItem
  • res:
    • 200: okay
      • Params
        • skipped: Boolean
    • 422: invalid parameters
    • 500: internal error

Leaderboards

getLeaderboards (get)

  • route: api/commands/leaderboards/getLeaderboards
  • req:
    • params:
      • guildID
  • res:
    • 200: okay
      • JSON
        • LeaderboardPair ({global: GlobalLeaderboard, guild: GuildLeaderboard})
    • 422: invalid parameters
    • 500: internal error

getGuildLeaderboard (get)

  • route: api/commands/leaderboards/getGuildLeaderboard
  • req:
    • params:
      • guildID
  • res:
    • 200: okay
      • JSON
        • GuildLeaderboard ({userID: UserID, score: Score})
    • 422: invalid parameters
    • 500: internal error

getGlobalLeaderboard (get)

  • route: api/commands/leaderboards/getGlobalLeaderboard
  • req:
  • res:
    • 200: okay
      • JSON
        • GlobalLeaderboard ({userID: UserID, score: Score})
    • 422: invalid parameters
    • 500: internal error