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": "403f1b25-4046-4c84-aa14-2c20936c5d12",
"Vehicles": [
{
"VehicleId": "0064f72a-badb-47e6-a699-3fd6edb0f0ed",
"PersonVehicleId": "9e43a6d5-0f37-4ea5-9b9b-6a9996e71f0a",
"PersonId": "831054b8-9a48-4b84-bbbe-c5fceaa1d714",
"sRegionId": "faa95958-1585-4001-8b66-1e929c7f04a4",
"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": "e90dac5f-9f95-49fa-aa70-bd564751535d"
},
{
"VehicleId": "0064f72a-badb-47e6-a699-3fd6edb0f0ed",
"PersonVehicleId": "9e43a6d5-0f37-4ea5-9b9b-6a9996e71f0a",
"PersonId": "831054b8-9a48-4b84-bbbe-c5fceaa1d714",
"sRegionId": "faa95958-1585-4001-8b66-1e929c7f04a4",
"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": "e90dac5f-9f95-49fa-aa70-bd564751535d"
}
]
}
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>403f1b25-4046-4c84-aa14-2c20936c5d12</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>831054b8-9a48-4b84-bbbe-c5fceaa1d714</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>faa95958-1585-4001-8b66-1e929c7f04a4</sRegionId>
<sVehicleTypeId>e90dac5f-9f95-49fa-aa70-bd564751535d</sVehicleTypeId>
<PersonVehicleId>9e43a6d5-0f37-4ea5-9b9b-6a9996e71f0a</PersonVehicleId>
<VehicleId>0064f72a-badb-47e6-a699-3fd6edb0f0ed</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>831054b8-9a48-4b84-bbbe-c5fceaa1d714</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>faa95958-1585-4001-8b66-1e929c7f04a4</sRegionId>
<sVehicleTypeId>e90dac5f-9f95-49fa-aa70-bd564751535d</sVehicleTypeId>
<PersonVehicleId>9e43a6d5-0f37-4ea5-9b9b-6a9996e71f0a</PersonVehicleId>
<VehicleId>0064f72a-badb-47e6-a699-3fd6edb0f0ed</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>