Last active
June 17, 2016 13:52
-
-
Save espy/8e53138e3c6f27c24ade683059a5904e to your computer and use it in GitHub Desktop.
A-Class request and response for Beaconsfield
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REQUEST | |
{ | |
"priority": "Location", | |
"model": 1, | |
"transmission": 0, | |
"fueltype": 0, | |
"engine": 0, | |
"trim": 0, | |
"postcode": "hp201xg", | |
"retailer": 20, | |
"location": "AtRetailer", | |
"date": "2016-07-01" | |
} | |
// RESPONSE | |
{ | |
"data": { | |
"matches": [{ | |
"model": { | |
"1": "A-Class" | |
}, | |
"image": { | |
"standard": null, | |
"retina": "\/\/assets.mercedes-benz.co.uk\/vehicle\/retina2\/a-class@2x.png" | |
}, | |
"transmission": { | |
"1": "Automatic" | |
}, | |
"fuel_type": { | |
"1": "Petrol" | |
}, | |
"engine": { | |
"5": "A 180 AMG Line" | |
}, | |
"trim": { | |
"3": "AMG Line" | |
}, | |
"retailer": 20, | |
"slots": [{ | |
"start_time": "13:30", | |
"end_time": "14:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:00", | |
"end_time": "15:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:30", | |
"end_time": "15:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:00", | |
"end_time": "16:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:30", | |
"end_time": "16:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "16:00", | |
"end_time": "17:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}] | |
}, { | |
"model": { | |
"1": "A-Class" | |
}, | |
"image": { | |
"standard": null, | |
"retina": "\/\/assets.mercedes-benz.co.uk\/vehicle\/retina2\/a-class@2x.png" | |
}, | |
"transmission": { | |
"1": "Automatic" | |
}, | |
"fuel_type": { | |
"2": "Diesel" | |
}, | |
"engine": { | |
"5": "A 180 AMG Line" | |
}, | |
"trim": { | |
"3": "AMG Line" | |
}, | |
"retailer": 20, | |
"slots": [{ | |
"start_time": "10:00", | |
"end_time": "11:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "10:30", | |
"end_time": "11:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "11:00", | |
"end_time": "12:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "11:30", | |
"end_time": "12:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "12:00", | |
"end_time": "13:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "12:30", | |
"end_time": "13:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "13:00", | |
"end_time": "14:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "13:30", | |
"end_time": "14:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:00", | |
"end_time": "15:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:30", | |
"end_time": "15:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:00", | |
"end_time": "16:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:30", | |
"end_time": "16:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "16:00", | |
"end_time": "17:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}] | |
}, { | |
"model": { | |
"1": "A-Class" | |
}, | |
"image": { | |
"standard": null, | |
"retina": "\/\/assets.mercedes-benz.co.uk\/vehicle\/retina2\/a-class@2x.png" | |
}, | |
"transmission": { | |
"1": "Automatic" | |
}, | |
"fuel_type": { | |
"2": "Diesel" | |
}, | |
"engine": { | |
"6": "A 180 Sport" | |
}, | |
"trim": { | |
"2": "Sport" | |
}, | |
"retailer": 20, | |
"slots": [{ | |
"start_time": "10:00", | |
"end_time": "11:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "10:30", | |
"end_time": "11:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "11:00", | |
"end_time": "12:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "11:30", | |
"end_time": "12:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "12:00", | |
"end_time": "13:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "12:30", | |
"end_time": "13:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "13:00", | |
"end_time": "14:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "13:30", | |
"end_time": "14:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:00", | |
"end_time": "15:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "14:30", | |
"end_time": "15:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:00", | |
"end_time": "16:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "15:30", | |
"end_time": "16:30", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}, { | |
"start_time": "16:00", | |
"end_time": "17:00", | |
"duration": { | |
"hours": 1, | |
"mins": 0 | |
} | |
}] | |
}], | |
"retailers": { | |
"20": { | |
"id": 20, | |
"category": "MERCEDES", | |
"rod_code": 296, | |
"phase_two_ready": true, | |
"name": "Mercedes-Benz of Beaconsfield", | |
"address1": "55 Station Road", | |
"address2": "", | |
"address3": "", | |
"town_city": "Beaconsfield", | |
"postal_code": "HP9 1QJ", | |
"telephone": "01494 672141", | |
"latitude": 51.609512329102, | |
"longitude": -0.644106209278, | |
"website": "", | |
"location": { | |
"lat": 51.609512329102, | |
"lng": -0.644106209278 | |
}, | |
"features": { | |
"passenger": true, | |
"amg": false, | |
"ebike": false, | |
"van": false, | |
"truck": false, | |
"unimog": false, | |
"summer": false, | |
"omniture": "dairetuk29601", | |
"evartracking": "mercedes-benz-of-beaconsfield", | |
"vip": false, | |
"testdriveV1": true, | |
"apiv1Ref": 20 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment