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": "b0d27371-187b-481f-91a8-2a66a8ca0570",
"Vehicles": [
{
"VehicleId": "2cdbda56-9352-4015-9203-1ea7bb6796ba",
"PersonVehicleId": "da4b0d02-5912-46c3-a6ee-8e6ff800ec48",
"PersonId": "04813427-ea84-4b04-aa6f-6770d488200a",
"sRegionId": "6b655b75-fee9-491d-b336-b081f91182a5",
"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": "aa27e8d6-3adf-4203-80d4-d10e08216bea"
},
{
"VehicleId": "2cdbda56-9352-4015-9203-1ea7bb6796ba",
"PersonVehicleId": "da4b0d02-5912-46c3-a6ee-8e6ff800ec48",
"PersonId": "04813427-ea84-4b04-aa6f-6770d488200a",
"sRegionId": "6b655b75-fee9-491d-b336-b081f91182a5",
"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": "aa27e8d6-3adf-4203-80d4-d10e08216bea"
}
]
}
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>b0d27371-187b-481f-91a8-2a66a8ca0570</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>04813427-ea84-4b04-aa6f-6770d488200a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>6b655b75-fee9-491d-b336-b081f91182a5</sRegionId>
<sVehicleTypeId>aa27e8d6-3adf-4203-80d4-d10e08216bea</sVehicleTypeId>
<PersonVehicleId>da4b0d02-5912-46c3-a6ee-8e6ff800ec48</PersonVehicleId>
<VehicleId>2cdbda56-9352-4015-9203-1ea7bb6796ba</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>04813427-ea84-4b04-aa6f-6770d488200a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>6b655b75-fee9-491d-b336-b081f91182a5</sRegionId>
<sVehicleTypeId>aa27e8d6-3adf-4203-80d4-d10e08216bea</sVehicleTypeId>
<PersonVehicleId>da4b0d02-5912-46c3-a6ee-8e6ff800ec48</PersonVehicleId>
<VehicleId>2cdbda56-9352-4015-9203-1ea7bb6796ba</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>