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": "e88fe4fc-3f33-44fe-a4b3-47a7e708e622",
"Vehicles": [
{
"VehicleId": "df483c82-6c2a-413b-853c-3b241335d73c",
"PersonVehicleId": "4d69c6b5-e7e3-48d6-977c-49e0912ffd47",
"PersonId": "c1cc1d79-6c2d-4af3-8387-727351a4fd6d",
"sRegionId": "07f3d85e-0392-4bc8-878b-918635f61879",
"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": "de863dd4-600d-41d2-ad6f-c82227531693"
},
{
"VehicleId": "df483c82-6c2a-413b-853c-3b241335d73c",
"PersonVehicleId": "4d69c6b5-e7e3-48d6-977c-49e0912ffd47",
"PersonId": "c1cc1d79-6c2d-4af3-8387-727351a4fd6d",
"sRegionId": "07f3d85e-0392-4bc8-878b-918635f61879",
"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": "de863dd4-600d-41d2-ad6f-c82227531693"
}
]
}
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>e88fe4fc-3f33-44fe-a4b3-47a7e708e622</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c1cc1d79-6c2d-4af3-8387-727351a4fd6d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>07f3d85e-0392-4bc8-878b-918635f61879</sRegionId>
<sVehicleTypeId>de863dd4-600d-41d2-ad6f-c82227531693</sVehicleTypeId>
<PersonVehicleId>4d69c6b5-e7e3-48d6-977c-49e0912ffd47</PersonVehicleId>
<VehicleId>df483c82-6c2a-413b-853c-3b241335d73c</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c1cc1d79-6c2d-4af3-8387-727351a4fd6d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>07f3d85e-0392-4bc8-878b-918635f61879</sRegionId>
<sVehicleTypeId>de863dd4-600d-41d2-ad6f-c82227531693</sVehicleTypeId>
<PersonVehicleId>4d69c6b5-e7e3-48d6-977c-49e0912ffd47</PersonVehicleId>
<VehicleId>df483c82-6c2a-413b-853c-3b241335d73c</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>