Skip to content

Instantly share code, notes, and snippets.

@mkubarycz
Created May 18, 2017 17:12
Show Gist options
  • Save mkubarycz/9d5594e1ac2e73eeee17d761c2b3fd83 to your computer and use it in GitHub Desktop.
Save mkubarycz/9d5594e1ac2e73eeee17d761c2b3fd83 to your computer and use it in GitHub Desktop.
Leaderboard Scoring Feed
[
{
"ID": 0,
"Tour": "PGA Tour",
"TourLogo": "http://logo",
"Date": {
"Start": "2012-04-23T18:25:43.511-0500",
"End": "2012-04-23T18:25:43.511-0500"
},
"Status": "Pending | Ready | Live | Intermission | | Suspended | Finished | Closed",
"EventType": "StrokePlay",
"StrokePlayLeaderBoard": {
"State": "Ready | Live | Intermission | Finished",
"Data": [
{
"ID": 3,
"Name": "Golfer Name",
"FlagUrl": "http://flag",
"Position": "T2",
"Ordinal": 3,
"Total": 10,
"Today": 10,
"NextTeeTime": "2012-04-23T18:25:43.511-0500"
}
]
}
}
]
@mkubarycz
Copy link
Author

I think the event level information really needs to be separated out from the data to allow us only to send player level updates over the wire. With this schema, we are stuck sending all 150 players each time

@cletustboone
Copy link

Good point. However, is it possible to use this schema in a GET endpoint for bootstrapping purposes? POST updates can be player level only.

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