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": "8d7f309e-8f71-4bee-979f-a857d3f393e4",
"Vehicles": [
{
"VehicleId": "abb67fb1-9fd6-4e42-82b8-4f26eca4a5b9",
"PersonVehicleId": "072c1640-d8f7-41eb-a227-0bced291a7aa",
"PersonId": "d8a68cc8-8b88-4d1e-b9f9-3f0cc5b0ca25",
"sRegionId": "e171065c-8f04-4dc1-a603-fd73dc9c2f1c",
"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": "d81ec6ae-bbe1-44a2-bd9d-abdbf2f41c9f"
},
{
"VehicleId": "abb67fb1-9fd6-4e42-82b8-4f26eca4a5b9",
"PersonVehicleId": "072c1640-d8f7-41eb-a227-0bced291a7aa",
"PersonId": "d8a68cc8-8b88-4d1e-b9f9-3f0cc5b0ca25",
"sRegionId": "e171065c-8f04-4dc1-a603-fd73dc9c2f1c",
"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": "d81ec6ae-bbe1-44a2-bd9d-abdbf2f41c9f"
}
]
}
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>8d7f309e-8f71-4bee-979f-a857d3f393e4</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>d8a68cc8-8b88-4d1e-b9f9-3f0cc5b0ca25</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>e171065c-8f04-4dc1-a603-fd73dc9c2f1c</sRegionId>
<sVehicleTypeId>d81ec6ae-bbe1-44a2-bd9d-abdbf2f41c9f</sVehicleTypeId>
<PersonVehicleId>072c1640-d8f7-41eb-a227-0bced291a7aa</PersonVehicleId>
<VehicleId>abb67fb1-9fd6-4e42-82b8-4f26eca4a5b9</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>d8a68cc8-8b88-4d1e-b9f9-3f0cc5b0ca25</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>e171065c-8f04-4dc1-a603-fd73dc9c2f1c</sRegionId>
<sVehicleTypeId>d81ec6ae-bbe1-44a2-bd9d-abdbf2f41c9f</sVehicleTypeId>
<PersonVehicleId>072c1640-d8f7-41eb-a227-0bced291a7aa</PersonVehicleId>
<VehicleId>abb67fb1-9fd6-4e42-82b8-4f26eca4a5b9</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>