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": "c1f9a555-37e4-4578-b968-cb936ef19cc7",
"Vehicles": [
{
"VehicleId": "91856706-e0f3-41d0-bd2d-51cc83178f00",
"PersonVehicleId": "05f389aa-9d2b-4111-b022-625ef5c3f09c",
"PersonId": "fcc837f3-b26c-4f67-a241-315fc6186808",
"sRegionId": "850c41cd-1d50-400a-a70f-c7e6cbce5f6e",
"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": "5073d06b-75c3-42c3-8274-5b960240ea8a"
},
{
"VehicleId": "91856706-e0f3-41d0-bd2d-51cc83178f00",
"PersonVehicleId": "05f389aa-9d2b-4111-b022-625ef5c3f09c",
"PersonId": "fcc837f3-b26c-4f67-a241-315fc6186808",
"sRegionId": "850c41cd-1d50-400a-a70f-c7e6cbce5f6e",
"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": "5073d06b-75c3-42c3-8274-5b960240ea8a"
}
]
}
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>c1f9a555-37e4-4578-b968-cb936ef19cc7</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>fcc837f3-b26c-4f67-a241-315fc6186808</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>850c41cd-1d50-400a-a70f-c7e6cbce5f6e</sRegionId>
<sVehicleTypeId>5073d06b-75c3-42c3-8274-5b960240ea8a</sVehicleTypeId>
<PersonVehicleId>05f389aa-9d2b-4111-b022-625ef5c3f09c</PersonVehicleId>
<VehicleId>91856706-e0f3-41d0-bd2d-51cc83178f00</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>fcc837f3-b26c-4f67-a241-315fc6186808</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>850c41cd-1d50-400a-a70f-c7e6cbce5f6e</sRegionId>
<sVehicleTypeId>5073d06b-75c3-42c3-8274-5b960240ea8a</sVehicleTypeId>
<PersonVehicleId>05f389aa-9d2b-4111-b022-625ef5c3f09c</PersonVehicleId>
<VehicleId>91856706-e0f3-41d0-bd2d-51cc83178f00</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>