Skip to content

Games Api

Nulled edited this page May 16, 2021 · 3 revisions

Description

The Games Api or "api-games" is used to gain information on games. There are public endpoints using normal authentication and admin endpoints with require a special authentication

URL

"https://api-games.werewolf-apps.com"

Endpoints

Public

  • "/api/public/game/friends/invitations" (GET) - Used to get all the gameIds the player has been invited to
  • "/api/public/game/custom" (GET) - Used to get all open custom games
  • "/api/public/game/running?gameId={gameId}" (GET) - Used to check if a game has started/is over
  • "/api/public/game/customGames/validatePassword?gameId={gameId}&password={password}" (GET) - Used to check the validity of a given password in relation to a game
  • "/api/public/game/playing?playerIds={playerId_1}&playerIds={playerId_2}&..." (GET) - Used to get all the gameIds the players in the parameters are currently in (currently very inconsistent!!!)

Private / Admins only

  • "/api/admin/games/open" (GET) - Used to get all the currently open games
  • "/api/admin/games/custom" (GET) - Used to get all the currently open custom games
  • "/api/admin/games/playing?playerId={playerId}" (GET) - Used to get the game the give player is in
  • "/api/admin/games/friends" (GET) - Used to get all open friends game lobbys
  • "/api/admin/games/{gameId}/start" (POST) - Used to force a game start on the given lobby
  • "/api/admin/games/{gameId}" (DELETE) - Used to force a game end on the given game
  • "/api/admin/games/{gameId}/info" (GET) - Used to get information on a given game
  • "/api/admin/player/count" (GET) - Used to get the player count currently online (gamemode based?)
  • "/api/admin/player/totalCount" (GET) - Used to get the total player count currently online
  • "/api/admin/player/scoreOverview" (GET) - Used to get an overview of the score of all players online
  • "/api/admin/player/rankedCount" (GET) - Used to get the player count of ranked players currently online
  • "/api/admin/profiler/cpu" (GET) - Used to collect information on the cpu usage
  • "/api/admin/profiler/cpu/start" (PUT) - Used to start the cpu profiler
  • "/api/admin/profiler/cpu/stop" (PUT) - Used to stop the cpu profiler
Clone this wiki locally