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": "24f740a1-1094-4ba8-9f89-f32807e7e6a8",
"Vehicles": [
{
"VehicleId": "d78503f8-1e1f-4f04-bb9f-a3329018cf51",
"PersonVehicleId": "0aace199-4ee1-43d3-8124-6e7584fe566d",
"PersonId": "f6a64d4d-2229-4adc-be6e-6d6cd1455130",
"sRegionId": "abdcfaf0-b33c-43f1-9b43-7c1a967a24f8",
"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": "a36b3b61-ec2a-45db-93aa-da54a08db1ec"
},
{
"VehicleId": "d78503f8-1e1f-4f04-bb9f-a3329018cf51",
"PersonVehicleId": "0aace199-4ee1-43d3-8124-6e7584fe566d",
"PersonId": "f6a64d4d-2229-4adc-be6e-6d6cd1455130",
"sRegionId": "abdcfaf0-b33c-43f1-9b43-7c1a967a24f8",
"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": "a36b3b61-ec2a-45db-93aa-da54a08db1ec"
}
]
}
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>24f740a1-1094-4ba8-9f89-f32807e7e6a8</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f6a64d4d-2229-4adc-be6e-6d6cd1455130</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>abdcfaf0-b33c-43f1-9b43-7c1a967a24f8</sRegionId>
<sVehicleTypeId>a36b3b61-ec2a-45db-93aa-da54a08db1ec</sVehicleTypeId>
<PersonVehicleId>0aace199-4ee1-43d3-8124-6e7584fe566d</PersonVehicleId>
<VehicleId>d78503f8-1e1f-4f04-bb9f-a3329018cf51</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f6a64d4d-2229-4adc-be6e-6d6cd1455130</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>abdcfaf0-b33c-43f1-9b43-7c1a967a24f8</sRegionId>
<sVehicleTypeId>a36b3b61-ec2a-45db-93aa-da54a08db1ec</sVehicleTypeId>
<PersonVehicleId>0aace199-4ee1-43d3-8124-6e7584fe566d</PersonVehicleId>
<VehicleId>d78503f8-1e1f-4f04-bb9f-a3329018cf51</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>