-
Notifications
You must be signed in to change notification settings - Fork 0
Description
INDEX /races
Returns a list of all currently active races
GET /races/:id
:id is the id of the active race
QUERY STRING
lower : :string - (optional) Any value here sets player name keys in json to lowercase
PUT /races/:id
Changes the state of a race
BODY
filename : :string - Any value with flag a race as needing a filename
game : :string - Set the game abbreviation of the race
goal : :string - Set the race goal/description
state : :int - Set the race state, 2 - Entry Close, 3 - In Progress, 4 - Complete, 5 - Race Over
record : :string - Record the race
rematch : :string - Clear entrants list, and set race state to Entry Open
POST /races
Creates a new race
BODY
game : :string - Game abbrevation of the game to be raced
DELETE /races/:id
Deletes a race