|
|
# API calls and required Roles
|
|
|
|
|
|
## Bots
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET |/bots |Student|
|
|
|
|GET |/bots/mybots |Student|
|
|
|
|GET |/bots/{botId} |Student|
|
|
|
|GET |/bots/game/{gameId} |Student|
|
|
|
|POST |/bots/createbot |Student|
|
|
|
|DELETE|/bots/deletebot/{botId} |Student|
|
|
|
|POST |/bots/regeneratetoken/{botid} |Student|
|
|
|
|POST |/bots/editbot |Student|
|
|
|
|
|
|
## Games
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET |/games |Student|
|
|
|
|GET |/games/{gameName} |Student|
|
|
|
|
|
|
## MatchManager
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|POST |/matchmanager/{gameId}/initialize |Student|
|
|
|
|GET |/matchmanager/matches |Student|
|
|
|
|GET |/matchmanager/matches/{matchId} |Student|
|
|
|
|
|
|
|
|
|
## TournamentManager
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET |/tournamentmanager/tournaments |Student|
|
|
|
|GET |/tournamentmanager/tournaments/{tournamentId} |Student|
|
|
|
|
|
|
## KnockoutReferee
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|POST |/tournament/knockout/init |Student|
|
|
|
|POST |/tournament/knockout/startRound/{tournamentId} |Student|
|
|
|
|
|
|
## TournamentSystem
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET |/tournaments/systems |Administrator|
|
|
|
|
|
|
## Course
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET| /users/courses |Student|
|
|
|
|GET| /users/courses/{courseId} |Student|
|
|
|
|DELETE| /users/courses/{courseId} |Tutor|
|
|
|
|POST| /users/courses |Tutor|
|
|
|
|GET| /users/courses/{courseId}/join/{teamId} |Tutor|
|
|
|
|GET| /users/courses/{courseId}/leave/{teamId} |Tutor|
|
|
|
|
|
|
## Team
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET| /users/teams |Student|
|
|
|
|GET| /users/teams/{teamsId} |Student|
|
|
|
|DELETE| /users/teams/{teamsId} |Tutor|
|
|
|
|POST| /users/teams |Tutor|
|
|
|
|GET| /users/teams/{teamsId}/join |Student|
|
|
|
|GET| /users/teams/{teamsId}/leave |Student|
|
|
|
|
|
|
## User
|
|
|
||||
|
|
|
|-|-|-|
|
|
|
|GET| /users |Student|
|
|
|
|GET| /users/{userId} |Student|
|
|
|
|POST| /users ||
|
|
|
|GET| /users/profile ||
|
|
|
|GET| /users/{userId}/roles |Administrator|
|
|
|
|GET| /users/{userId}/availableRoles |Administrator|
|
|
|
|POST| /users/{userId}/roles |Administrator|
|
|
|
|DELETE| /users/{userId}/roles/{roleId} |Administrator| |
|
|
\ No newline at end of file |