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": "96071d46-8563-46e0-ad1f-edb96f4cbd17",
"Vehicles": [
{
"VehicleId": "94843933-c7dd-44af-ab0f-13d316906dfa",
"PersonVehicleId": "04524f61-021b-4553-befa-25fb23224be8",
"PersonId": "e0f8566f-af28-48d4-a14a-e3ca218b39ca",
"sRegionId": "35b99e79-0aae-4eac-9f96-5d95aee2a654",
"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": "cc1334a3-0b7d-468c-b6bf-0d73d93dfc63"
},
{
"VehicleId": "94843933-c7dd-44af-ab0f-13d316906dfa",
"PersonVehicleId": "04524f61-021b-4553-befa-25fb23224be8",
"PersonId": "e0f8566f-af28-48d4-a14a-e3ca218b39ca",
"sRegionId": "35b99e79-0aae-4eac-9f96-5d95aee2a654",
"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": "cc1334a3-0b7d-468c-b6bf-0d73d93dfc63"
}
]
}
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>96071d46-8563-46e0-ad1f-edb96f4cbd17</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e0f8566f-af28-48d4-a14a-e3ca218b39ca</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>35b99e79-0aae-4eac-9f96-5d95aee2a654</sRegionId>
<sVehicleTypeId>cc1334a3-0b7d-468c-b6bf-0d73d93dfc63</sVehicleTypeId>
<PersonVehicleId>04524f61-021b-4553-befa-25fb23224be8</PersonVehicleId>
<VehicleId>94843933-c7dd-44af-ab0f-13d316906dfa</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e0f8566f-af28-48d4-a14a-e3ca218b39ca</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>35b99e79-0aae-4eac-9f96-5d95aee2a654</sRegionId>
<sVehicleTypeId>cc1334a3-0b7d-468c-b6bf-0d73d93dfc63</sVehicleTypeId>
<PersonVehicleId>04524f61-021b-4553-befa-25fb23224be8</PersonVehicleId>
<VehicleId>94843933-c7dd-44af-ab0f-13d316906dfa</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>