CraigInDallas
Posts: 0
Joined: Wed Oct 10, 2012 10:23 am

Example of Dynamic List from Rest results

{
"makeHolder": [
{
"id": 200347864,
"name": "AM General",
"niceName": "amgeneral",
"models": [
{
"link": "/api/vehicle/am-general/hummer",
"id": "AM_General_Hummer",
"name": "Hummer"
}
],
"manufacturer": null,
"attributeGroups": {}
},
{
"id": 200002038,
"name": "Acura",
"niceName": "acura",
"models": [
{
"link": "/api/vehicle/acura/slx",
"id": "Acura_SLX",
"name": "SLX"
},
{
"link": "/api/vehicle/acura/ilx",
"id": "Acura_ILX",
"name": "ILX"
},
{
"link": "/api/vehicle/acura/legend",
"id": "Acura_Legend",
"name": "Legend"
},
{
"link": "/api/vehicle/acura/rsx",
"id": "Acura_RSX",
"name": "RSX"
},
{
"link": "/api/vehicle/acura/rlx",
"id": "Acura_RLX",
"name": "RLX"
},
{
"link": "/api/vehicle/acura/tsxsportwagon",
"id": "Acura_TSX_Sport_Wagon",
"name": "TSX Sport Wagon"
},
{
"link": "/api/vehicle/acura/rl",
"id": "Acura_RL",
"name": "RL"
},
{
"link": "/api/vehicle/acura/tl",
"id": "Acura_TL",
"name": "TL"
},
{
"link": "/api/vehicle/acura/tsx",
"id": "Acura_TSX",
"name": "TSX"
},
{
"link": "/api/vehicle/acura/vigor",
"id": "Acura_Vigor",
"name": "Vigor"
},
{
"link": "/api/vehicle/acura/integra",
"id": "Acura_Integra",
"name": "Integra"
},
{
"link": "/api/vehicle/acura/cl",
"id": "Acura_CL",
"name": "CL"
},
{
"link": "/api/vehicle/acura/zdx",
"id": "Acura_ZDX",
"name": "ZDX"
},
{
"link": "/api/vehicle/acura/nsx",
"id": "Acura_NSX",
"name": "NSX"
},
{
"link": "/api/vehicle/acura/rdx",
"id": "Acura_RDX",
"name": "RDX"
},
{
"link": "/api/vehicle/acura/mdx",
"id": "Acura_MDX",
"name": "MDX"
}
],
"manufacturer": null,
"attributeGroups": {}
},

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Example of Dynamic List from Rest results

If you get the entire JSON back (all the makers and models) then you would need to search the JSON, find the maker and then get the models. In this case you would need the dynamic example.

I thought there is an option to get back JSON based on maker input. Maybe such option exists?

CraigInDallas
Posts: 0
Joined: Wed Oct 10, 2012 10:23 am

Example of Dynamic List from Rest results

Nah, I have gone through all of the available options with their api.

So back to my original question, is there any sample code I could refer to to I guess load this array and get what I need?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Example of Dynamic List from Rest results

I don't have any specific code for that.. you basically need to go through the JSON and get all the models based on make. You should be able to find many examples on the internet.

Return to “Issues”