Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created March 4, 2014 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/9343092 to your computer and use it in GitHub Desktop.
Save zzarcon/9343092 to your computer and use it in GitHub Desktop.
Prizes API
"prizes": [
{
"id" : 1,
"competition_type" : "league",
"level": "gold",
"ingots" : 28.000.000,
"money" : 400,
"transfer" : "promotion"
},
{
"id" : 2,
"competition_type" : "local_cup",
"level": "silver",
"ingots" : 28.000.000,
"money" : null,
"transfer" : "relegation"
}
]
@zzarcon
Copy link
Author

zzarcon commented Mar 4, 2014

The transfer key shows if the prize relegate or promote the team

@cibernox
Copy link

cibernox commented Mar 4, 2014

Final structure after some discussion:

"prizes": [
  {
    "id" : 1,
    "competition_type" : "league",
    "level_id": "1A",
    "metal_id": null,
    "ingots" : 28.000.000,
    "money" : 400,
    "position": 2
  },
  {
    "id" : 2,
    "competition_type" : "local_cup",
    "level_id": null,
    "metal_id": "golden",
    "ingots" : 28.000.000,
    "money" : null,
    "position": 1
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment