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": "951eab44-b593-4291-8ab6-fec4bbe789ed",
"Vehicles": [
{
"VehicleId": "2c65d3f2-595e-4722-9d65-6a0872bf8b1c",
"PersonVehicleId": "fe6af3f8-48a4-48ef-b250-27f0456c4771",
"PersonId": "386eac61-c8e1-4cb7-bebc-4b48f15ff1b6",
"sRegionId": "d64c59a9-eba0-4853-8c17-c3a1dd0dff48",
"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": "a4887e02-7627-4852-a962-07c4e484e1e7"
},
{
"VehicleId": "2c65d3f2-595e-4722-9d65-6a0872bf8b1c",
"PersonVehicleId": "fe6af3f8-48a4-48ef-b250-27f0456c4771",
"PersonId": "386eac61-c8e1-4cb7-bebc-4b48f15ff1b6",
"sRegionId": "d64c59a9-eba0-4853-8c17-c3a1dd0dff48",
"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": "a4887e02-7627-4852-a962-07c4e484e1e7"
}
]
}
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>951eab44-b593-4291-8ab6-fec4bbe789ed</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>386eac61-c8e1-4cb7-bebc-4b48f15ff1b6</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d64c59a9-eba0-4853-8c17-c3a1dd0dff48</sRegionId>
<sVehicleTypeId>a4887e02-7627-4852-a962-07c4e484e1e7</sVehicleTypeId>
<PersonVehicleId>fe6af3f8-48a4-48ef-b250-27f0456c4771</PersonVehicleId>
<VehicleId>2c65d3f2-595e-4722-9d65-6a0872bf8b1c</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>386eac61-c8e1-4cb7-bebc-4b48f15ff1b6</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d64c59a9-eba0-4853-8c17-c3a1dd0dff48</sRegionId>
<sVehicleTypeId>a4887e02-7627-4852-a962-07c4e484e1e7</sVehicleTypeId>
<PersonVehicleId>fe6af3f8-48a4-48ef-b250-27f0456c4771</PersonVehicleId>
<VehicleId>2c65d3f2-595e-4722-9d65-6a0872bf8b1c</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>