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": "ab4a2c09-cdf7-4d35-8af8-d77d971d778c",
"Vehicles": [
{
"VehicleId": "b689f37c-41d2-4528-83a3-5dd155d90ef6",
"PersonVehicleId": "2fc44c13-687c-4015-988d-f082daed7d82",
"PersonId": "e9983319-c417-4840-a78e-44134d017d28",
"sRegionId": "14b42f83-88a3-4970-80cc-2523981130cd",
"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": "51c50471-c835-44fe-9829-240a8c2f467d"
},
{
"VehicleId": "b689f37c-41d2-4528-83a3-5dd155d90ef6",
"PersonVehicleId": "2fc44c13-687c-4015-988d-f082daed7d82",
"PersonId": "e9983319-c417-4840-a78e-44134d017d28",
"sRegionId": "14b42f83-88a3-4970-80cc-2523981130cd",
"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": "51c50471-c835-44fe-9829-240a8c2f467d"
}
]
}
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>ab4a2c09-cdf7-4d35-8af8-d77d971d778c</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e9983319-c417-4840-a78e-44134d017d28</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>14b42f83-88a3-4970-80cc-2523981130cd</sRegionId>
<sVehicleTypeId>51c50471-c835-44fe-9829-240a8c2f467d</sVehicleTypeId>
<PersonVehicleId>2fc44c13-687c-4015-988d-f082daed7d82</PersonVehicleId>
<VehicleId>b689f37c-41d2-4528-83a3-5dd155d90ef6</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e9983319-c417-4840-a78e-44134d017d28</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>14b42f83-88a3-4970-80cc-2523981130cd</sRegionId>
<sVehicleTypeId>51c50471-c835-44fe-9829-240a8c2f467d</sVehicleTypeId>
<PersonVehicleId>2fc44c13-687c-4015-988d-f082daed7d82</PersonVehicleId>
<VehicleId>b689f37c-41d2-4528-83a3-5dd155d90ef6</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>