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": "7ef980a6-50b6-4b55-9a34-4b9c18996832",
"Vehicles": [
{
"VehicleId": "715f1fde-0a55-4c80-9ecb-2328d19fc965",
"PersonVehicleId": "47c57559-231d-4160-9496-5907d1b10209",
"PersonId": "9f06e673-3415-4e5b-915a-9aaedddde85d",
"sRegionId": "27ef397f-4cd0-4c97-bade-f7c9209aa4ce",
"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": "c392d3e3-36b0-46b0-9d37-754b0671748f"
},
{
"VehicleId": "715f1fde-0a55-4c80-9ecb-2328d19fc965",
"PersonVehicleId": "47c57559-231d-4160-9496-5907d1b10209",
"PersonId": "9f06e673-3415-4e5b-915a-9aaedddde85d",
"sRegionId": "27ef397f-4cd0-4c97-bade-f7c9209aa4ce",
"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": "c392d3e3-36b0-46b0-9d37-754b0671748f"
}
]
}
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>7ef980a6-50b6-4b55-9a34-4b9c18996832</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>9f06e673-3415-4e5b-915a-9aaedddde85d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>27ef397f-4cd0-4c97-bade-f7c9209aa4ce</sRegionId>
<sVehicleTypeId>c392d3e3-36b0-46b0-9d37-754b0671748f</sVehicleTypeId>
<PersonVehicleId>47c57559-231d-4160-9496-5907d1b10209</PersonVehicleId>
<VehicleId>715f1fde-0a55-4c80-9ecb-2328d19fc965</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>9f06e673-3415-4e5b-915a-9aaedddde85d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>27ef397f-4cd0-4c97-bade-f7c9209aa4ce</sRegionId>
<sVehicleTypeId>c392d3e3-36b0-46b0-9d37-754b0671748f</sVehicleTypeId>
<PersonVehicleId>47c57559-231d-4160-9496-5907d1b10209</PersonVehicleId>
<VehicleId>715f1fde-0a55-4c80-9ecb-2328d19fc965</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>