Skip to content

Instantly share code, notes, and snippets.

@darthdeus
Created February 14, 2013 21:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save darthdeus/4956537 to your computer and use it in GitHub Desktop.
Save darthdeus/4956537 to your computer and use it in GitHub Desktop.
HOST: http://www.google.com/
--- Sample API v2 ---
---
Welcome to the our sample API documentation. All comments can be written in (support [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax)
---
GET /tournaments/1
< 200
< Content-Type: application/json
{"tournament":{"id":382,"name":"gaga","participant_count":11,"image_name":"tournament_eu_bsg.png","starts_at":"2013-02-14 16:31","seeded":true,"user_id":8768,"is_registered":true,"is_checked":true,"rounds":[{"id":2115,"number":16,"bo":1,"text":"MLG Entombed Valley\nGSL Metropolis\nESV Ohana LE\n","matches":[{"id":16088,"player1":"CptRagmchine.750","player2":"Draco.192","player1_score":null,"player2_score":null,"completed":false,"score":null},{"id":16089,"player1":"Dennia.767","player2":"31231231.312","player1_score":null,"player2_score":null,"completed":false,"score":null},{"id":16090,"player1":"Noodlechoppa.293","player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16091,"player1":"lostartist.490","player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16092,"player1":"Dream.894","player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16093,"player1":"Tuplag.404","player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16094,"player1":"Nafrayu.322","player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16095,"player1":"Panther.526","player2":"iLoseForU.912","player1_score":null,"player2_score":null,"completed":false,"score":null}]},{"id":2116,"number":8,"bo":1,"text":"GSL Bel'Shir Beach (Winter)\nESL Cloud Kingdom\nGSL Daybreak\n","matches":[{"id":16096,"player1":null,"player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16097,"player1":"Noodlechoppa.293","player2":"lostartist.490","player1_score":null,"player2_score":null,"completed":false,"score":null},{"id":16098,"player1":"Dream.894","player2":"Tuplag.404","player1_score":null,"player2_score":null,"completed":false,"score":null},{"id":16099,"player1":"Nafrayu.322","player2":null,"player1_score":null,"player2_score":null,"completed":false,"score":null}]},{"id":2117,"number":4,"bo":3,"text":null,"matches":[{"id":16100,"player1":null,"player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null},{"id":16101,"player1":null,"player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null}]},{"id":2118,"number":2,"bo":3,"text":null,"matches":[{"id":16102,"player1":null,"player2":null,"player1_score":null,"player2_score":null,"completed":true,"score":null}]},{"id":2119,"number":1,"bo":3,"text":null,"matches":[]}],"users":[3056,3057,3058,3059,3061,3062,3063,3064,3065,3066,8768]}}
GET /tournaments/2
< 200
< Content-Type: application/json
{"tournament":{"id":382,"name":"ember fight","rounds":[1]}}
GET /rounds?ids[]=1
< 200
< Content-Type: application/json
{"rounds":[{"id":1,"number":16,"bo":1,"text":"MLG Github","matches":[1,2]}]}
GET /matches?ids[]=1&ids[]=2
< 200
< Content-Type: application/json
{"matches":[{"id":1,"player1":"CptRagmchine.750","player2":"Draco.192"},{"id":2,"player1":"Tomdale.123","player2":"Wycats.123"}]}
GET /matches/3
< 200
< Content-Type: application/json
{"match":{"id":2,"player1":"Tomdale.123","player2":"Wycats.123"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment