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": "db480e5c-00d2-46ad-90ca-ba7663babb76",
"Vehicles": [
{
"VehicleId": "51cd5c30-dc0e-4bd5-a421-c14bc1af629c",
"PersonVehicleId": "2aea5041-ad27-4be8-a20c-32fe9b974a69",
"PersonId": "4ec00448-99c5-46ad-b418-db2a8caa375a",
"sRegionId": "ea045323-f770-416e-a349-04045d4cde88",
"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": "f35b4644-5c20-49f0-976a-8dc742496b3c"
},
{
"VehicleId": "51cd5c30-dc0e-4bd5-a421-c14bc1af629c",
"PersonVehicleId": "2aea5041-ad27-4be8-a20c-32fe9b974a69",
"PersonId": "4ec00448-99c5-46ad-b418-db2a8caa375a",
"sRegionId": "ea045323-f770-416e-a349-04045d4cde88",
"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": "f35b4644-5c20-49f0-976a-8dc742496b3c"
}
]
}
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>db480e5c-00d2-46ad-90ca-ba7663babb76</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>4ec00448-99c5-46ad-b418-db2a8caa375a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ea045323-f770-416e-a349-04045d4cde88</sRegionId>
<sVehicleTypeId>f35b4644-5c20-49f0-976a-8dc742496b3c</sVehicleTypeId>
<PersonVehicleId>2aea5041-ad27-4be8-a20c-32fe9b974a69</PersonVehicleId>
<VehicleId>51cd5c30-dc0e-4bd5-a421-c14bc1af629c</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>4ec00448-99c5-46ad-b418-db2a8caa375a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ea045323-f770-416e-a349-04045d4cde88</sRegionId>
<sVehicleTypeId>f35b4644-5c20-49f0-976a-8dc742496b3c</sVehicleTypeId>
<PersonVehicleId>2aea5041-ad27-4be8-a20c-32fe9b974a69</PersonVehicleId>
<VehicleId>51cd5c30-dc0e-4bd5-a421-c14bc1af629c</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>