This resource returns a list of equipment that comes either standard or optional with a car. The response describes the equipment in four different ways:
{
"id": {integer},
"name": {string},
"equipmentType": {string},
"availability": {string},
"attributes": [{
"name": {string},
"value": {string}
}]
}
{
"id": {string},
"name": {string},
"equipmentType": "ENGINE",
"availability": {string},
"compressionRatio": {float},
"cylinder": {integer},
"size": {float},
"displacement": {integer},
"configuration": {string},
"fuelType": {string},
"horsepower": {integer},
"torque": {integer},
"totalValves": {integer},
"manufacturerEngineCode": {string},
"type": {string},
"code": {string},
"compressorType": {string}
}
{
"id": {integer},
"name": {string},
"equipmentType": "TRANSMISSION",
"availability": {string},
"automaticType": {string},
"transmissionType": {string},
"numberOfSpeeds": {integer}
}
{
"id": {string},
"name": {string},
"equipmentType": "COLOR",
"manufactureOptionName": {string},
"manufactureOptionCode": {string},
"category": {string},
"colorChips": {
"primary": {
"r": {integer},
"g": {integer},
"b": {integer},
"hex": {string}
},
"secondary": {
"r": {integer},
"g": {integer},
"b": {integer},
"hex": {string}
}
}
}
When you parse an equipment object, make sure you look for the equipmentType
value first to see how to process it. If it’s anything other than COLOR, ENGINE or TRANSMISSION, then treat it as a typical equipment.
The response objects will include keys like equipmentType
and availability
. To understand those better, here’s a list of all possible values for both properties: