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": "a10f9147-5522-4d0f-bc67-affba7ad3f4e",
"Vehicles": [
{
"VehicleId": "f282a9ef-c3ad-48c5-afc3-4495ab963932",
"PersonVehicleId": "a99ff46e-490d-4b78-b7e8-5657cbac38a7",
"PersonId": "a5f0d237-852c-439d-83ed-8461b45125de",
"sRegionId": "8213dc7c-3bda-465a-8cff-cdef843daee8",
"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": "64e16d7b-58d3-4a53-99c5-aabdabbbd59f"
},
{
"VehicleId": "f282a9ef-c3ad-48c5-afc3-4495ab963932",
"PersonVehicleId": "a99ff46e-490d-4b78-b7e8-5657cbac38a7",
"PersonId": "a5f0d237-852c-439d-83ed-8461b45125de",
"sRegionId": "8213dc7c-3bda-465a-8cff-cdef843daee8",
"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": "64e16d7b-58d3-4a53-99c5-aabdabbbd59f"
}
]
}
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>a10f9147-5522-4d0f-bc67-affba7ad3f4e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a5f0d237-852c-439d-83ed-8461b45125de</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>8213dc7c-3bda-465a-8cff-cdef843daee8</sRegionId>
<sVehicleTypeId>64e16d7b-58d3-4a53-99c5-aabdabbbd59f</sVehicleTypeId>
<PersonVehicleId>a99ff46e-490d-4b78-b7e8-5657cbac38a7</PersonVehicleId>
<VehicleId>f282a9ef-c3ad-48c5-afc3-4495ab963932</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>a5f0d237-852c-439d-83ed-8461b45125de</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>8213dc7c-3bda-465a-8cff-cdef843daee8</sRegionId>
<sVehicleTypeId>64e16d7b-58d3-4a53-99c5-aabdabbbd59f</sVehicleTypeId>
<PersonVehicleId>a99ff46e-490d-4b78-b7e8-5657cbac38a7</PersonVehicleId>
<VehicleId>f282a9ef-c3ad-48c5-afc3-4495ab963932</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>