-
Notifications
You must be signed in to change notification settings - Fork 0
API endpoints
Robin Penea edited this page May 8, 2014
·
4 revisions
- expand parameters can be applied to any GET request on root resources/collections
- POST /sessions/ {username, password}
- GET /sessions/:sessionId
- DELETE /sessions/:sessionId
- 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
- 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
- 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
- GET /scores/?game_id=:gameId
- POST /scores/
- PUT /scores/:scoreId
- DELETE /scores/:scoreId