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": "df7687b2-dc83-454d-b8dd-e18f3ff2b0ad",
"Vehicles": [
{
"VehicleId": "edf895c3-47e5-4cbf-b4a8-25114827779e",
"PersonVehicleId": "49b62e02-119d-4845-bf8e-7585719fca77",
"PersonId": "6980f138-b452-4106-aaef-e7b33118cc90",
"sRegionId": "d00b55b5-98ac-4267-8d9d-f24b115b523d",
"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": "bd3a1e82-0d20-49c3-bd2f-b202cd923472"
},
{
"VehicleId": "edf895c3-47e5-4cbf-b4a8-25114827779e",
"PersonVehicleId": "49b62e02-119d-4845-bf8e-7585719fca77",
"PersonId": "6980f138-b452-4106-aaef-e7b33118cc90",
"sRegionId": "d00b55b5-98ac-4267-8d9d-f24b115b523d",
"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": "bd3a1e82-0d20-49c3-bd2f-b202cd923472"
}
]
}
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>df7687b2-dc83-454d-b8dd-e18f3ff2b0ad</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>6980f138-b452-4106-aaef-e7b33118cc90</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d00b55b5-98ac-4267-8d9d-f24b115b523d</sRegionId>
<sVehicleTypeId>bd3a1e82-0d20-49c3-bd2f-b202cd923472</sVehicleTypeId>
<PersonVehicleId>49b62e02-119d-4845-bf8e-7585719fca77</PersonVehicleId>
<VehicleId>edf895c3-47e5-4cbf-b4a8-25114827779e</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>6980f138-b452-4106-aaef-e7b33118cc90</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d00b55b5-98ac-4267-8d9d-f24b115b523d</sRegionId>
<sVehicleTypeId>bd3a1e82-0d20-49c3-bd2f-b202cd923472</sVehicleTypeId>
<PersonVehicleId>49b62e02-119d-4845-bf8e-7585719fca77</PersonVehicleId>
<VehicleId>edf895c3-47e5-4cbf-b4a8-25114827779e</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>