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": "2e250aff-6cbf-485f-a037-77f1bc46f79f",
"Vehicles": [
{
"VehicleId": "1f7dcec0-236c-41e3-b37b-4c42e0fd33bb",
"PersonVehicleId": "659b8e07-7082-4ff4-8963-ceec93868f88",
"PersonId": "c0f8a187-b182-4286-92a0-05774eed9aa1",
"sRegionId": "fdfa5bcd-5dd6-448f-a3ac-a9e8232ecd24",
"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": "306a608c-2320-4565-911c-706ede937552"
},
{
"VehicleId": "1f7dcec0-236c-41e3-b37b-4c42e0fd33bb",
"PersonVehicleId": "659b8e07-7082-4ff4-8963-ceec93868f88",
"PersonId": "c0f8a187-b182-4286-92a0-05774eed9aa1",
"sRegionId": "fdfa5bcd-5dd6-448f-a3ac-a9e8232ecd24",
"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": "306a608c-2320-4565-911c-706ede937552"
}
]
}
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>2e250aff-6cbf-485f-a037-77f1bc46f79f</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c0f8a187-b182-4286-92a0-05774eed9aa1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fdfa5bcd-5dd6-448f-a3ac-a9e8232ecd24</sRegionId>
<sVehicleTypeId>306a608c-2320-4565-911c-706ede937552</sVehicleTypeId>
<PersonVehicleId>659b8e07-7082-4ff4-8963-ceec93868f88</PersonVehicleId>
<VehicleId>1f7dcec0-236c-41e3-b37b-4c42e0fd33bb</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c0f8a187-b182-4286-92a0-05774eed9aa1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fdfa5bcd-5dd6-448f-a3ac-a9e8232ecd24</sRegionId>
<sVehicleTypeId>306a608c-2320-4565-911c-706ede937552</sVehicleTypeId>
<PersonVehicleId>659b8e07-7082-4ff4-8963-ceec93868f88</PersonVehicleId>
<VehicleId>1f7dcec0-236c-41e3-b37b-4c42e0fd33bb</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>