Skip to content
Robin Penea edited this page May 8, 2014 · 4 revisions
  • expand parameters can be applied to any GET request on root resources/collections

Sessions

  • POST /sessions/ {username, password}
  • GET /sessions/:sessionId
  • DELETE /sessions/:sessionId

Users

  • GET /users/?expand=[cups]
  • GET /users/?cup_id=:cupId
  • GET /users/?game_id=:gameId
  • POST /users/
  • GET /users/:userId
  • GET /users/:userId/stats
  • PUT /users/:userId
  • PUT /users/:userId/password

Cups

  • GET /cups/?expand=[games|owner]
  • GET /cups/?user_id=:userId
  • POST /cups/
  • PUT /cups/:cupId
  • DELETE /cups/:cupId
  • POST /cups/:cupId/members/
  • DELETE /cups/:cupId/members/:userId # Delete user from cup
  • GET /cups/:cupId/leaderboard

Games

  • GET /games/?cup_id=:cupId
  • POST /games/
  • DELETE /games/:gameId
  • POST /games/:gameId/users/ # Create user in game
  • DELETE /games/:gameId/users/:userId # Delete user from game

Scores

  • GET /scores/?game_id=:gameId
  • POST /scores/
  • PUT /scores/:scoreId
  • DELETE /scores/:scoreId
Clone this wiki locally