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": "afb47f53-82eb-46d9-95bd-f24cc83b9438",
"Vehicles": [
{
"VehicleId": "b13457af-b673-45e4-94de-7380a243c392",
"PersonVehicleId": "5aa7460c-96cd-4d7d-8eea-23e9464d3136",
"PersonId": "0882eb5f-7536-4d7d-aa53-b5698b360eb7",
"sRegionId": "37379db0-0451-4f8a-839d-f33bd0514380",
"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": "40fd08c0-57c3-411c-bc79-b4929349f61c"
},
{
"VehicleId": "b13457af-b673-45e4-94de-7380a243c392",
"PersonVehicleId": "5aa7460c-96cd-4d7d-8eea-23e9464d3136",
"PersonId": "0882eb5f-7536-4d7d-aa53-b5698b360eb7",
"sRegionId": "37379db0-0451-4f8a-839d-f33bd0514380",
"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": "40fd08c0-57c3-411c-bc79-b4929349f61c"
}
]
}
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>afb47f53-82eb-46d9-95bd-f24cc83b9438</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>0882eb5f-7536-4d7d-aa53-b5698b360eb7</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>37379db0-0451-4f8a-839d-f33bd0514380</sRegionId>
<sVehicleTypeId>40fd08c0-57c3-411c-bc79-b4929349f61c</sVehicleTypeId>
<PersonVehicleId>5aa7460c-96cd-4d7d-8eea-23e9464d3136</PersonVehicleId>
<VehicleId>b13457af-b673-45e4-94de-7380a243c392</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>0882eb5f-7536-4d7d-aa53-b5698b360eb7</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>37379db0-0451-4f8a-839d-f33bd0514380</sRegionId>
<sVehicleTypeId>40fd08c0-57c3-411c-bc79-b4929349f61c</sVehicleTypeId>
<PersonVehicleId>5aa7460c-96cd-4d7d-8eea-23e9464d3136</PersonVehicleId>
<VehicleId>b13457af-b673-45e4-94de-7380a243c392</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>