Advertisement
puchiedarcy

Untitled

Jun 20th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. SRL API Documentation
  2.  
  3. == Entrants ==
  4.  
  5. INDEX /entrants
  6. [not implemented]
  7.  
  8. GET /entrants/:id
  9. :id is race id
  10. Returns list of players participating in a race
  11.  
  12. == Games ==
  13.  
  14. INDEX /games
  15. Returns un-paged list of all races games
  16.  
  17. GET /games/:id
  18. :id is game abbreviation
  19. Return details about a specific game
  20.  
  21. == Goals ==
  22.  
  23. INDEX /goals
  24. [not implemented]
  25.  
  26. GET /goals/:id
  27. :id is game abbreviation
  28. Returns most commonly races goals for a season
  29. QUERY STRING
  30. season : :int - The season of the top goals, or the active season if omitted
  31.  
  32. == Leaderboard ==
  33.  
  34. INDEX /leaderboard
  35. Returns the leaderboard for common race statistics
  36. QUERY STRING
  37. page : :int - Page of data to return; 1 if omitted
  38. pageSize : :int - Size of paged data to return; 100 if omitted
  39. sortField : :int - Statistic to sort on; vaild stats are 15 - Overall skill, 1 - number of races, 8 - number of wins, 6 - time played, 3 - unique games played
  40. order : :string - Largest to smallest or vice-versa; ASC by default, DESC also acceptable
  41.  
  42. GET /leaderboard/:id
  43. :id is game abbreviation
  44. Returns the trueskill leaderboard for a game in a season
  45. QUERY STRING
  46. season : :int - Id of season, active seasons if omitted
  47.  
  48. == Pastraces ==
  49.  
  50. INDEX /pastraces
  51. Returns list of races from the past
  52. QUERY STRING
  53. page : :int - Page of data to return, 1 if omitted
  54. pageSize : :int - Size of page, 20 if omitted, 20 max
  55. season : :int - (optional) Id of the season in which the races took place
  56. game : :string - (optional) Abbreviation of the game for the races
  57. player : :string - (optional) Name of a player in the races
  58. seasongoal : :int - (optional) Id of the season featured goal for the race
  59.  
  60. GET /pastraces/:id
  61. :id is the id of a specific past race
  62. Returns the details of an individual race
  63.  
  64. == Players ==
  65.  
  66. INDEX /players
  67. [not implemented]
  68.  
  69. GET /players/:id
  70. :id is the player's name
  71. Returns details about a specific player
  72.  
  73.  
  74. == Races ==
  75.  
  76. INDEX /races
  77. Returns a list of all currently active races
  78.  
  79. GET /races/:id
  80. :id is the id of the active race
  81. QUERY STRING
  82. lower : :string - (optional) Any value here sets player name keys in json to lowercase
  83. == Ratings ==
  84.  
  85. INDEX /ratings
  86. Returns a random champion of a game (#1 ranked player)
  87.  
  88. GET /ratings/:id
  89. :id is a player name
  90. Returns the ratings of all played games for a player
  91.  
  92.  
  93. == Rules ==
  94.  
  95. INDEX /rules
  96. [not implemented]
  97.  
  98. GET /rules/:id
  99. :id is game abbreviation
  100. Returns the rules for racing a game
  101.  
  102.  
  103. == Stat ==
  104.  
  105. INDEX /stat
  106. Returns various statistics for overall, players, or games
  107. QUERY STRING
  108. player : :string - (optional) Name of the player to get stats for
  109. game : :string - (optional) Abbreviation of the game to get statistics for
  110.  
  111. GET /stat/monthly
  112. Returns month-over-month statistics
  113.  
  114.  
  115.  
  116.  
  117. == Streams ==
  118.  
  119. INDEX /streams
  120. Returns a list of player names for a given list of stream names
  121. QUERY STRING
  122. channels : :string - Comma separated list of stream names
  123.  
  124. GET /streams/:id
  125. :id is player name
  126. Returns the stream channel name of a player
  127.  
  128. There is also /youtube/:id and /twitter/:id for player names
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement