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": "85eebea4-5e2b-4423-a10f-2a6d15ac0ce5",
"Vehicles": [
{
"VehicleId": "38fb5781-6eb9-4559-93c3-ff92460399de",
"PersonVehicleId": "13a1fa11-ad53-4132-9429-7f4f69ac93e2",
"PersonId": "7a2e7195-05d9-4cf5-bafd-d2812d626157",
"sRegionId": "a24f1151-a352-402e-8153-74a3ba21a167",
"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": "b0948444-6dfd-4798-a147-3522a1277cfc"
},
{
"VehicleId": "38fb5781-6eb9-4559-93c3-ff92460399de",
"PersonVehicleId": "13a1fa11-ad53-4132-9429-7f4f69ac93e2",
"PersonId": "7a2e7195-05d9-4cf5-bafd-d2812d626157",
"sRegionId": "a24f1151-a352-402e-8153-74a3ba21a167",
"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": "b0948444-6dfd-4798-a147-3522a1277cfc"
}
]
}
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>85eebea4-5e2b-4423-a10f-2a6d15ac0ce5</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7a2e7195-05d9-4cf5-bafd-d2812d626157</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a24f1151-a352-402e-8153-74a3ba21a167</sRegionId>
<sVehicleTypeId>b0948444-6dfd-4798-a147-3522a1277cfc</sVehicleTypeId>
<PersonVehicleId>13a1fa11-ad53-4132-9429-7f4f69ac93e2</PersonVehicleId>
<VehicleId>38fb5781-6eb9-4559-93c3-ff92460399de</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7a2e7195-05d9-4cf5-bafd-d2812d626157</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a24f1151-a352-402e-8153-74a3ba21a167</sRegionId>
<sVehicleTypeId>b0948444-6dfd-4798-a147-3522a1277cfc</sVehicleTypeId>
<PersonVehicleId>13a1fa11-ad53-4132-9429-7f4f69ac93e2</PersonVehicleId>
<VehicleId>38fb5781-6eb9-4559-93c3-ff92460399de</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>