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": "45f7ab2a-6a56-4c00-b35e-333bc70d19a3",
"Vehicles": [
{
"VehicleId": "61c64807-96d3-45ed-9fe3-1c3404c692d8",
"PersonVehicleId": "acb7f6c6-14c1-480c-84bb-6ccebd9aa67e",
"PersonId": "a05e13e3-18ee-40ab-bca3-a74422c820c8",
"sRegionId": "67caf621-a1f8-4888-be64-3cec4e9ae422",
"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": "efb68359-dde4-4a38-9e1f-36d4a59f3006"
},
{
"VehicleId": "61c64807-96d3-45ed-9fe3-1c3404c692d8",
"PersonVehicleId": "acb7f6c6-14c1-480c-84bb-6ccebd9aa67e",
"PersonId": "a05e13e3-18ee-40ab-bca3-a74422c820c8",
"sRegionId": "67caf621-a1f8-4888-be64-3cec4e9ae422",
"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": "efb68359-dde4-4a38-9e1f-36d4a59f3006"
}
]
}
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>45f7ab2a-6a56-4c00-b35e-333bc70d19a3</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a05e13e3-18ee-40ab-bca3-a74422c820c8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>67caf621-a1f8-4888-be64-3cec4e9ae422</sRegionId>
<sVehicleTypeId>efb68359-dde4-4a38-9e1f-36d4a59f3006</sVehicleTypeId>
<PersonVehicleId>acb7f6c6-14c1-480c-84bb-6ccebd9aa67e</PersonVehicleId>
<VehicleId>61c64807-96d3-45ed-9fe3-1c3404c692d8</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a05e13e3-18ee-40ab-bca3-a74422c820c8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>67caf621-a1f8-4888-be64-3cec4e9ae422</sRegionId>
<sVehicleTypeId>efb68359-dde4-4a38-9e1f-36d4a59f3006</sVehicleTypeId>
<PersonVehicleId>acb7f6c6-14c1-480c-84bb-6ccebd9aa67e</PersonVehicleId>
<VehicleId>61c64807-96d3-45ed-9fe3-1c3404c692d8</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>