GET api/VehicleMPG/{id}?VehicleId={VehicleId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
|
VehicleId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ApiVehicleMPGName | Description | Type | Additional information |
---|---|---|---|
VehicleId | integer |
None. |
|
CombinedMPG | decimal number |
None. |
|
UrbanMPG | decimal number |
None. |
|
ExtraUrbanMPG | decimal number |
None. |
|
FuelTankSize | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "VehicleId": 1, "CombinedMPG": 2.1, "UrbanMPG": 3.1, "ExtraUrbanMPG": 4.1, "FuelTankSize": 5.1 }
application/xml, text/xml
Sample:
<ApiVehicleMPG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetRateManager.Infrastructure.ViewModels.APi"> <CombinedMPG>2.1</CombinedMPG> <ExtraUrbanMPG>4.1</ExtraUrbanMPG> <FuelTankSize>5.1</FuelTankSize> <UrbanMPG>3.1</UrbanMPG> <VehicleId>1</VehicleId> </ApiVehicleMPG>