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": "23e081c1-c95e-4bf5-8730-77fd9f4ddcc4",
"Vehicles": [
{
"VehicleId": "0cac359a-fb7d-40cb-839a-304bc55a7450",
"PersonVehicleId": "70c89d7e-9093-4498-b902-5a2566d57f8e",
"PersonId": "a216fdd5-62c9-4629-9a69-a8d5532b4053",
"sRegionId": "40ba7a55-a2fe-448e-aea3-7ba326dc3c93",
"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": "6c7049c0-1b0e-48f6-8c10-52c5889993f5"
},
{
"VehicleId": "0cac359a-fb7d-40cb-839a-304bc55a7450",
"PersonVehicleId": "70c89d7e-9093-4498-b902-5a2566d57f8e",
"PersonId": "a216fdd5-62c9-4629-9a69-a8d5532b4053",
"sRegionId": "40ba7a55-a2fe-448e-aea3-7ba326dc3c93",
"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": "6c7049c0-1b0e-48f6-8c10-52c5889993f5"
}
]
}
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>23e081c1-c95e-4bf5-8730-77fd9f4ddcc4</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a216fdd5-62c9-4629-9a69-a8d5532b4053</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>40ba7a55-a2fe-448e-aea3-7ba326dc3c93</sRegionId>
<sVehicleTypeId>6c7049c0-1b0e-48f6-8c10-52c5889993f5</sVehicleTypeId>
<PersonVehicleId>70c89d7e-9093-4498-b902-5a2566d57f8e</PersonVehicleId>
<VehicleId>0cac359a-fb7d-40cb-839a-304bc55a7450</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a216fdd5-62c9-4629-9a69-a8d5532b4053</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>40ba7a55-a2fe-448e-aea3-7ba326dc3c93</sRegionId>
<sVehicleTypeId>6c7049c0-1b0e-48f6-8c10-52c5889993f5</sVehicleTypeId>
<PersonVehicleId>70c89d7e-9093-4498-b902-5a2566d57f8e</PersonVehicleId>
<VehicleId>0cac359a-fb7d-40cb-839a-304bc55a7450</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>