Skip to content
keokilee edited this page Sep 14, 2010 · 1 revision

/api/rounds.json

Returns a JSON structure that contains the start and end dates along with the dates for each round.

Sample Invocations:


curl http://kukuicup.manoa.hawaii.edu/api/rounds.json
{"start": "2010-07-28", "end": "2010-12-31", "Round 1": {"start": "2010-08-09", "end": "2010-12-31"}}

/api/standings/floor.json

Returns a JSON structure that contains the standings for the competition grouped by floors. The structure is an array that contains the standings for each round and the overall standings. Takes an optional dorm parameter that restricts the results to the floors in a particular dorm.

Sample Invocations:


curl http://kukuicup.manoa.hawaii.edu/api/standings/floor.json
[{"info": [{"points": 10, "rank": 1, "label": "Ilima: Lounge A"}, {"points": 0, "rank": 2, "label": "Lehua: Lounge A"}], "title": "Lounge vs. Lounge: Round 1"},{"info": [{"points": 205, "rank": 1, "label": "Ilima: Lounge A"}, {"points": 0, "rank": 2, "label": "Lehua: Lounge A"}], "title": "Lounge vs. Lounge: Overall"}]


curl http://kukuicup.manoa.hawaii.edu/api/standings/floor.json?dorm=Mokihana
[{"info": [{"points": 0, "rank": 1, "label": "A"}, {"points": 0, "rank": 2, "label": "B"}, {"points": 0, "rank": 3, "label": "C"}, {"points": 0, "rank": 4, "label": "D"}, {"points": 0, "rank": 5, "label": "E"}], "title": "Mokihana: Round 1"},{"info": [{"points": 0, "rank": 1, "label": "A"}, {"points": 0, "rank": 2, "label": "B"}, {"points": 0, "rank": 3, "label": "C"}, {"points": 0, "rank": 4, "label": "D"}, {"points": 0, "rank": 5, "label": "E"}], "title": "Mokihana: Overall"}]

/api/standings/individual.json

Returns a JSON structure that contains the standings for the competition grouped by individuals. The structure is an array that contains the standings for each round and the overall standings.

Sample Invocations:


[{"info": [{"points": 10, "rank": 1, "label": "Ilima: Lounge A (RB)"}, {"points": 0, "rank": 2, "label": "Ilima: Lounge A (GL)"}, {"points": 0, "rank": 3, "label": "Ilima: Lounge A (PJ)"}], "title": "Lounge vs. Lounge: Round 1"},{"info": [{"points": 21, "rank": 1, "label": "Ilima: Lounge A (PJ)"}, {"points": 19, "rank": 2, "label": "Ilima: Lounge A (GL)"}, {"points": 15, "rank": 3, "label": "Ilima: Lounge A (RB)"}], "title": "Lounge vs. Lounge: Overall"}]


curl http://kukuicup.manoa.hawaii.edu/api/standings/individual.json?dorm=Lehua
[{"info": [{"points": 0, "rank": 1, "label": "Lehua: Lounge A (PS)"}, {"points": 0, "rank": 2, "label": "Lehua: Lounge A (AI)"}, {"points": 0, "rank": 3, "label": "Lehua: Lounge A (CZ)"}], "title": "Lehua: Round 1"},{"info": [{"points": 0, "rank": 1, "label": "Lehua: Lounge A (PS)"}, {"points": 0, "rank": 2, "label": "Lehua: Lounge A (AI)"}, {"points": 0, "rank": 3, "label": "Lehua: Lounge A (CZ)"}], "title": "Lehua: Overall"}]