GET api/v2/Users/{id}/Vehicles
Gets the Person Vehicles
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
User Id |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PersonAndVehiclesViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PersonId |
Represents PersonId of the Vehicle is linked with |
globally unique identifier |
None. |
| Vehicles |
Represents List of PersonVehiclesViewModel |
Collection of PersonUpdateVehicleViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"PersonId": "8191b3af-ce26-435e-9b2c-ca88185d892c",
"Vehicles": [
{
"VehicleId": "d43ee70c-615a-4d83-ac7d-4dad4a80a599",
"PersonVehicleId": "c2006fa0-0136-4c3b-9eb7-80beaef915b8",
"PersonId": "3fc01df6-6740-4ee5-b212-4e5a2c50a0c0",
"sRegionId": "e4c44979-8135-4be2-bba3-901af2e01ab0",
"Description": "sample string 5",
"Year": "sample string 6",
"Make": "sample string 7",
"Model": "sample string 8",
"Color": "sample string 9",
"PlateNumber": "sample string 10",
"sVehicleTypeId": "af2b0200-935b-45e3-8b7d-9339b6a0ced7"
},
{
"VehicleId": "d43ee70c-615a-4d83-ac7d-4dad4a80a599",
"PersonVehicleId": "c2006fa0-0136-4c3b-9eb7-80beaef915b8",
"PersonId": "3fc01df6-6740-4ee5-b212-4e5a2c50a0c0",
"sRegionId": "e4c44979-8135-4be2-bba3-901af2e01ab0",
"Description": "sample string 5",
"Year": "sample string 6",
"Make": "sample string 7",
"Model": "sample string 8",
"Color": "sample string 9",
"PlateNumber": "sample string 10",
"sVehicleTypeId": "af2b0200-935b-45e3-8b7d-9339b6a0ced7"
}
]
}
application/xml, text/xml
Sample:
<PersonAndVehiclesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
<PersonId>8191b3af-ce26-435e-9b2c-ca88185d892c</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>3fc01df6-6740-4ee5-b212-4e5a2c50a0c0</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>e4c44979-8135-4be2-bba3-901af2e01ab0</sRegionId>
<sVehicleTypeId>af2b0200-935b-45e3-8b7d-9339b6a0ced7</sVehicleTypeId>
<PersonVehicleId>c2006fa0-0136-4c3b-9eb7-80beaef915b8</PersonVehicleId>
<VehicleId>d43ee70c-615a-4d83-ac7d-4dad4a80a599</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>3fc01df6-6740-4ee5-b212-4e5a2c50a0c0</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>e4c44979-8135-4be2-bba3-901af2e01ab0</sRegionId>
<sVehicleTypeId>af2b0200-935b-45e3-8b7d-9339b6a0ced7</sVehicleTypeId>
<PersonVehicleId>c2006fa0-0136-4c3b-9eb7-80beaef915b8</PersonVehicleId>
<VehicleId>d43ee70c-615a-4d83-ac7d-4dad4a80a599</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>