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": "de56a457-12d1-46f8-8191-ddfa337358c6",
"Vehicles": [
{
"VehicleId": "9cd919e9-d4a5-494b-965b-75f86ba6676f",
"PersonVehicleId": "cd018a95-b5c5-4ab2-94b1-07db4d8d7419",
"PersonId": "ea63963c-2ccf-410a-9541-cccbcf158204",
"sRegionId": "011c3fb0-e50d-483c-b97c-e824b6734664",
"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": "92c99af1-35e3-4f00-a6fb-8e6274aedc1c"
},
{
"VehicleId": "9cd919e9-d4a5-494b-965b-75f86ba6676f",
"PersonVehicleId": "cd018a95-b5c5-4ab2-94b1-07db4d8d7419",
"PersonId": "ea63963c-2ccf-410a-9541-cccbcf158204",
"sRegionId": "011c3fb0-e50d-483c-b97c-e824b6734664",
"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": "92c99af1-35e3-4f00-a6fb-8e6274aedc1c"
}
]
}
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>de56a457-12d1-46f8-8191-ddfa337358c6</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>ea63963c-2ccf-410a-9541-cccbcf158204</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>011c3fb0-e50d-483c-b97c-e824b6734664</sRegionId>
<sVehicleTypeId>92c99af1-35e3-4f00-a6fb-8e6274aedc1c</sVehicleTypeId>
<PersonVehicleId>cd018a95-b5c5-4ab2-94b1-07db4d8d7419</PersonVehicleId>
<VehicleId>9cd919e9-d4a5-494b-965b-75f86ba6676f</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>ea63963c-2ccf-410a-9541-cccbcf158204</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>011c3fb0-e50d-483c-b97c-e824b6734664</sRegionId>
<sVehicleTypeId>92c99af1-35e3-4f00-a6fb-8e6274aedc1c</sVehicleTypeId>
<PersonVehicleId>cd018a95-b5c5-4ab2-94b1-07db4d8d7419</PersonVehicleId>
<VehicleId>9cd919e9-d4a5-494b-965b-75f86ba6676f</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>