AccueilDocumentation API Rest

GET tournament/:tournament/rankings

Renvoie la totalité des informations des classements liés au tournoi.

URL du service

http://api.tournikoti.com/tournament/:tournament/rankings.format

Paramètres

tournament

requis

Identifiant unique du tournoi sous forme d'une chaîne de caractère basée sur le nom du tournoi.

Exemple de valeur : my-tournament

Exemple de requête

GET http://api.tournikoti.com/tournament/my-tournament/rankings.json
{
  "rankings": {
    "ranking": [
       {
         "id": 1234,
         "name": "Main Ranking",
         "description": "Terrain A",
         "closed_at": null,
         "general": false,
         "position": "1",
         "unities" : [
           {
             "id" : 1234,
             "name" : "pts"
		     "position": 1
		     "general": true
		     "sort": "ASC"
         	},
         	{
             "id" : 1235,
             "name" : "BC"
		     "position": 2
		     "general": false
		     "sort": "ASC"
         	}
         	{
             "id" : 1237,
             "name" : "BP"
		     "position": 3
		     "general": false
		     "sort": "DESC"
         	}
         ], 
         "competitors" : [
           {
           	   "id": 1237,
               "name": "Wendy O'Brien",
               "tags": [
                 { "name": "runner" },
                 { "name": "girl" },
                 { "name": "adult" }
               ],
               "color": "53dfd9",
               "level": 1,
               "lft": 8,
               "rgt": 9,
               "created_at": "2012-03-07 10:39:29",
               "updated_at": "2012-03-07 10:40:29"
           },
           {
               "id": 1234,
               "name": "John Smith",
               "tags": [
                 { "name": "runner" },
                 { "name": "boy" 	},
                 { "name": "adult" 	}
               ],
               "color": "eb3737",
               "level": 1,
               "lft": 2,
               "rgt": 7,
               "created_at": "2012-03-07 10:38:23",
               "updated_at": "2012-03-07 10:38:23"
           },
         ]
       }
    ]
  },
  "status": 200,
  "message": "ok"
}

Informations du service

Authentification requise ? Oui
Format de réponse json
Méthode HTTP GET