Skip to content

Instantly share code, notes, and snippets.

@Rustem
Created November 11, 2014 09:23
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 Rustem/f177815c9cebe81c7561 to your computer and use it in GitHub Desktop.
Save Rustem/f177815c9cebe81c7561 to your computer and use it in GitHub Desktop.
{
"meta":{
"limit":20,
"next":null,
"offset":0,
"previous":null,
"total_count":16
},
"objects":[
{
"fuel_consumption":0.0,
"id":28,
"km":12850.177747946,
"make":"Mitsubishi",
"model":"Fuso (807282)",
"resource_uri":"/api/v1/car/28",
"time":7472434,
"vin":"00700000000000001"
},
{
"fuel_consumption":3.12914641452149,
"id":3,
"km":831.049060463689,
"make":"Grand Cherokee",
"model":"Jeep +705-119-34-25",
"resource_uri":"/api/v1/car/3",
"time":830620,
"vin":"354188046626086"
},
{
"fuel_consumption":0.0,
"id":19,
"km":0.0,
"make":"Subaru",
"model":"Impreza WXL",
"resource_uri":"/api/v1/car/19",
"time":0,
"vin":"RF1GH3KS58G01994A"
},
{
"fuel_consumption":0.0,
"id":27,
"km":0.0,
"make":"set",
"model":"testset",
"resource_uri":"/api/v1/car/27",
"time":0,
"vin":"3541880466306412"
},
{
"fuel_consumption":6256.11582226495,
"id":18,
"km":64049.6239657323,
"make":"Car",
"model":"Almaty, Kazahstan",
"resource_uri":"/api/v1/car/18",
"time":15379541,
"vin":"JF1GH3KS58G019947"
},
{
"fuel_consumption":0.0,
"id":26,
"km":0.0,
"make":"Subaru",
"model":"Impreza WXL",
"resource_uri":"/api/v1/car/26",
"time":0,
"vin":"12312321412412411"
},
{
"fuel_consumption":0.0,
"id":34,
"km":0.0,
"make":"7772553439",
"model":"Atrack",
"resource_uri":"/api/v1/car/34",
"time":0,
"vin":"12312312312312316"
},
{
"fuel_consumption":0.0,
"id":35,
"km":0.0,
"make":"Lamborghini",
"model":"Lamborghini Reventon",
"resource_uri":"/api/v1/car/35",
"time":0,
"vin":"12345678901234567"
},
{
"fuel_consumption":0.0,
"id":33,
"km":0.0,
"make":"7772553468",
"model":"Atrack, 356308044786421",
"resource_uri":"/api/v1/car/33",
"time":0,
"vin":"12312312312312315"
},
{
"fuel_consumption":0.0,
"id":4,
"km":1552.65423092399,
"make":"Car",
"model":"Almaty, Kazahstan",
"resource_uri":"/api/v1/car/4",
"time":2034680,
"vin":"44444444444444444"
},
{
"fuel_consumption":0.0,
"id":29,
"km":986.17565658101,
"make":"Toyota",
"model":"Prado",
"resource_uri":"/api/v1/car/29",
"time":957162,
"vin":"+7771134378"
},
{
"fuel_consumption":0.0,
"id":32,
"km":0.0,
"make":"7772553467",
"model":"Atrack, 356308044918966",
"resource_uri":"/api/v1/car/32",
"time":0,
"vin":"12312312312312314"
},
{
"fuel_consumption":773.670469016492,
"id":1,
"km":11934.2211665434,
"make":"Car",
"model":"Almaty, Kazahstan",
"resource_uri":"/api/v1/car/1",
"time":14681997,
"vin":"354188046625567"
},
{
"fuel_consumption":0.0,
"id":30,
"km":428.269403914882,
"make":"Camry",
"model":"Quecklink - 7772553461",
"resource_uri":"/api/v1/car/30",
"time":71569,
"vin":"12312312312312312"
},
{
"fuel_consumption":0.0,
"id":31,
"km":105.698995419035,
"make":"Toyota",
"model":"Highlander ",
"resource_uri":"/api/v1/car/31",
"time":223296,
"vin":"Q-link7772553463"
},
{
"fuel_consumption":0.0,
"id":2,
"km":6473.93507466204,
"make":"Car",
"model":"Kyiv, Ukraine",
"resource_uri":"/api/v1/car/2",
"time":1531082,
"vin":"354188046630641"
}
]
}
// http://127.0.0.1:8000/api/v1/car/?limit=3&offset=1
{
"meta":{
"limit":3,
"next":"/api/v1/car?limit=3&offset=4",
"offset":1,
"previous":null,
"total_count":16
},
"objects":[
{
"fuel_consumption":3.12914641452149,
"id":3,
"km":831.049060463689,
"make":"Grand Cherokee",
"model":"Jeep +705-119-34-25",
"resource_uri":"/api/v1/car/3",
"time":830620,
"vin":"354188046626086"
},
{
"fuel_consumption":0.0,
"id":19,
"km":0.0,
"make":"Subaru",
"model":"Impreza WXL",
"resource_uri":"/api/v1/car/19",
"time":0,
"vin":"RF1GH3KS58G01994A"
},
{
"fuel_consumption":0.0,
"id":27,
"km":0.0,
"make":"set",
"model":"testset",
"resource_uri":"/api/v1/car/27",
"time":0,
"vin":"3541880466306412"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment