All URLs prefixed with /v1
Retrieve all tracks.
{
tracks: [
{
id: 0,
name: "Alastaro",
gameName: "Forza",
carName: "BMW M3 2015"
},
{
...
}
]
}
Retrieve a single track and its leaderboard.
count: How many entries should be included (max). Default:10order: Ascending or descending order:asc,desc. Default:ascsortBy: Property to sort by:time,name,date. Default:time
{
id: 0,
name: "Alastaro",
gameName: "Forza",
carName: "BMW M3 2015"
times: [
{
id: 0,
time: 12321312, // in milliseconds
name: "Ralli-Pekka",
date: "2015-11-01"
},
{
...
}
]
}
Post an entry to a track
{
time: 12321312, // in milliseconds
name: "Ralli-Pekka",
date: "2015-11-01"
}