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": "9da4609f-df69-4906-9106-657628454226",
"Vehicles": [
{
"VehicleId": "0f03a1f8-5f81-417d-bf03-e7e47b786875",
"PersonVehicleId": "a7bfda8c-ce99-4d77-bd34-8ca8a6c264ae",
"PersonId": "cc646fdc-6c86-4a36-9f1f-5f32ba290aab",
"sRegionId": "0072d969-fafb-4880-b502-01b0d8b1a1e7",
"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": "29aa7791-725b-444b-adae-6004e0db2d84"
},
{
"VehicleId": "0f03a1f8-5f81-417d-bf03-e7e47b786875",
"PersonVehicleId": "a7bfda8c-ce99-4d77-bd34-8ca8a6c264ae",
"PersonId": "cc646fdc-6c86-4a36-9f1f-5f32ba290aab",
"sRegionId": "0072d969-fafb-4880-b502-01b0d8b1a1e7",
"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": "29aa7791-725b-444b-adae-6004e0db2d84"
}
]
}
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>9da4609f-df69-4906-9106-657628454226</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>cc646fdc-6c86-4a36-9f1f-5f32ba290aab</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>0072d969-fafb-4880-b502-01b0d8b1a1e7</sRegionId>
<sVehicleTypeId>29aa7791-725b-444b-adae-6004e0db2d84</sVehicleTypeId>
<PersonVehicleId>a7bfda8c-ce99-4d77-bd34-8ca8a6c264ae</PersonVehicleId>
<VehicleId>0f03a1f8-5f81-417d-bf03-e7e47b786875</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>cc646fdc-6c86-4a36-9f1f-5f32ba290aab</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>0072d969-fafb-4880-b502-01b0d8b1a1e7</sRegionId>
<sVehicleTypeId>29aa7791-725b-444b-adae-6004e0db2d84</sVehicleTypeId>
<PersonVehicleId>a7bfda8c-ce99-4d77-bd34-8ca8a6c264ae</PersonVehicleId>
<VehicleId>0f03a1f8-5f81-417d-bf03-e7e47b786875</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>