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": "5b590309-00bc-4fef-95af-50f3a64e82cc",
"Vehicles": [
{
"VehicleId": "6afc31ff-2412-41cd-997e-7218c9f457d5",
"PersonVehicleId": "23d2f807-052d-476a-9106-90e056287d97",
"PersonId": "e998159e-b838-4f7a-8efe-2d0831d5b522",
"sRegionId": "b4bb608e-da82-46a9-a036-a96c1c2bdaf0",
"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": "881d2441-0a79-44ed-85eb-7c7fc589f8fa"
},
{
"VehicleId": "6afc31ff-2412-41cd-997e-7218c9f457d5",
"PersonVehicleId": "23d2f807-052d-476a-9106-90e056287d97",
"PersonId": "e998159e-b838-4f7a-8efe-2d0831d5b522",
"sRegionId": "b4bb608e-da82-46a9-a036-a96c1c2bdaf0",
"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": "881d2441-0a79-44ed-85eb-7c7fc589f8fa"
}
]
}
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>5b590309-00bc-4fef-95af-50f3a64e82cc</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e998159e-b838-4f7a-8efe-2d0831d5b522</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>b4bb608e-da82-46a9-a036-a96c1c2bdaf0</sRegionId>
<sVehicleTypeId>881d2441-0a79-44ed-85eb-7c7fc589f8fa</sVehicleTypeId>
<PersonVehicleId>23d2f807-052d-476a-9106-90e056287d97</PersonVehicleId>
<VehicleId>6afc31ff-2412-41cd-997e-7218c9f457d5</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e998159e-b838-4f7a-8efe-2d0831d5b522</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>b4bb608e-da82-46a9-a036-a96c1c2bdaf0</sRegionId>
<sVehicleTypeId>881d2441-0a79-44ed-85eb-7c7fc589f8fa</sVehicleTypeId>
<PersonVehicleId>23d2f807-052d-476a-9106-90e056287d97</PersonVehicleId>
<VehicleId>6afc31ff-2412-41cd-997e-7218c9f457d5</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>