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": "d648b6a4-a1f8-49bb-bde8-1245f9b131d2",
"Vehicles": [
{
"VehicleId": "f3383c9c-527e-4c42-84f4-9b1f7aae5475",
"PersonVehicleId": "220100f5-2a26-4c95-9824-eeecb7ecbf6f",
"PersonId": "284ed3bf-94c3-4e42-b4de-b2a013301d2b",
"sRegionId": "7a34b696-5930-4e7b-a7b4-a945e4e9b5ea",
"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": "55cf8b20-c092-4d34-afc1-2988b93cd27e"
},
{
"VehicleId": "f3383c9c-527e-4c42-84f4-9b1f7aae5475",
"PersonVehicleId": "220100f5-2a26-4c95-9824-eeecb7ecbf6f",
"PersonId": "284ed3bf-94c3-4e42-b4de-b2a013301d2b",
"sRegionId": "7a34b696-5930-4e7b-a7b4-a945e4e9b5ea",
"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": "55cf8b20-c092-4d34-afc1-2988b93cd27e"
}
]
}
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>d648b6a4-a1f8-49bb-bde8-1245f9b131d2</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>284ed3bf-94c3-4e42-b4de-b2a013301d2b</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>7a34b696-5930-4e7b-a7b4-a945e4e9b5ea</sRegionId>
<sVehicleTypeId>55cf8b20-c092-4d34-afc1-2988b93cd27e</sVehicleTypeId>
<PersonVehicleId>220100f5-2a26-4c95-9824-eeecb7ecbf6f</PersonVehicleId>
<VehicleId>f3383c9c-527e-4c42-84f4-9b1f7aae5475</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>284ed3bf-94c3-4e42-b4de-b2a013301d2b</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>7a34b696-5930-4e7b-a7b4-a945e4e9b5ea</sRegionId>
<sVehicleTypeId>55cf8b20-c092-4d34-afc1-2988b93cd27e</sVehicleTypeId>
<PersonVehicleId>220100f5-2a26-4c95-9824-eeecb7ecbf6f</PersonVehicleId>
<VehicleId>f3383c9c-527e-4c42-84f4-9b1f7aae5475</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>