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": "f28d16d6-0b2c-42db-bf42-fd2ba3e9e017",
"Vehicles": [
{
"VehicleId": "9326c420-ac85-43c6-bc52-af60fd353aee",
"PersonVehicleId": "e7a28d0a-293f-4017-a4d5-f778c93df6a9",
"PersonId": "8210419e-7cfe-4831-9924-b52022608de5",
"sRegionId": "6a7c4058-0946-48d2-a594-753025f639aa",
"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": "87f6a6c5-a852-488c-90af-723aa9c91aa3"
},
{
"VehicleId": "9326c420-ac85-43c6-bc52-af60fd353aee",
"PersonVehicleId": "e7a28d0a-293f-4017-a4d5-f778c93df6a9",
"PersonId": "8210419e-7cfe-4831-9924-b52022608de5",
"sRegionId": "6a7c4058-0946-48d2-a594-753025f639aa",
"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": "87f6a6c5-a852-488c-90af-723aa9c91aa3"
}
]
}
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>f28d16d6-0b2c-42db-bf42-fd2ba3e9e017</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>8210419e-7cfe-4831-9924-b52022608de5</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>6a7c4058-0946-48d2-a594-753025f639aa</sRegionId>
<sVehicleTypeId>87f6a6c5-a852-488c-90af-723aa9c91aa3</sVehicleTypeId>
<PersonVehicleId>e7a28d0a-293f-4017-a4d5-f778c93df6a9</PersonVehicleId>
<VehicleId>9326c420-ac85-43c6-bc52-af60fd353aee</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>8210419e-7cfe-4831-9924-b52022608de5</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>6a7c4058-0946-48d2-a594-753025f639aa</sRegionId>
<sVehicleTypeId>87f6a6c5-a852-488c-90af-723aa9c91aa3</sVehicleTypeId>
<PersonVehicleId>e7a28d0a-293f-4017-a4d5-f778c93df6a9</PersonVehicleId>
<VehicleId>9326c420-ac85-43c6-bc52-af60fd353aee</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>