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": "d9d95b5d-f0b1-4872-96a1-fd6c531db285",
"Vehicles": [
{
"VehicleId": "e64b0858-a1a9-42be-bc88-320fa4ac9250",
"PersonVehicleId": "0ec0426f-4557-4204-b50b-60c0d43d10b2",
"PersonId": "f2c375b1-caee-4965-86d6-83348b27657f",
"sRegionId": "de41c974-8aad-4424-adfd-ef4da2a33deb",
"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": "bd955333-2951-4444-b4fa-eb55927c8472"
},
{
"VehicleId": "e64b0858-a1a9-42be-bc88-320fa4ac9250",
"PersonVehicleId": "0ec0426f-4557-4204-b50b-60c0d43d10b2",
"PersonId": "f2c375b1-caee-4965-86d6-83348b27657f",
"sRegionId": "de41c974-8aad-4424-adfd-ef4da2a33deb",
"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": "bd955333-2951-4444-b4fa-eb55927c8472"
}
]
}
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>d9d95b5d-f0b1-4872-96a1-fd6c531db285</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f2c375b1-caee-4965-86d6-83348b27657f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>de41c974-8aad-4424-adfd-ef4da2a33deb</sRegionId>
<sVehicleTypeId>bd955333-2951-4444-b4fa-eb55927c8472</sVehicleTypeId>
<PersonVehicleId>0ec0426f-4557-4204-b50b-60c0d43d10b2</PersonVehicleId>
<VehicleId>e64b0858-a1a9-42be-bc88-320fa4ac9250</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f2c375b1-caee-4965-86d6-83348b27657f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>de41c974-8aad-4424-adfd-ef4da2a33deb</sRegionId>
<sVehicleTypeId>bd955333-2951-4444-b4fa-eb55927c8472</sVehicleTypeId>
<PersonVehicleId>0ec0426f-4557-4204-b50b-60c0d43d10b2</PersonVehicleId>
<VehicleId>e64b0858-a1a9-42be-bc88-320fa4ac9250</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>