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": "38ad07a3-4125-4200-8614-b7d8e2b15857",
"Vehicles": [
{
"VehicleId": "db47c5b9-6f63-4f46-b1b7-74a5623b6a71",
"PersonVehicleId": "98f5e31d-0391-48ed-af7a-ef236b61d526",
"PersonId": "ea6c773a-c8a5-4a26-b0e3-9972eeaca7d8",
"sRegionId": "fc091bfd-0b1d-4767-a61e-909c65e015ec",
"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": "fddc266c-7831-4e7e-8311-1ff4a2c892ce"
},
{
"VehicleId": "db47c5b9-6f63-4f46-b1b7-74a5623b6a71",
"PersonVehicleId": "98f5e31d-0391-48ed-af7a-ef236b61d526",
"PersonId": "ea6c773a-c8a5-4a26-b0e3-9972eeaca7d8",
"sRegionId": "fc091bfd-0b1d-4767-a61e-909c65e015ec",
"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": "fddc266c-7831-4e7e-8311-1ff4a2c892ce"
}
]
}
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>38ad07a3-4125-4200-8614-b7d8e2b15857</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>ea6c773a-c8a5-4a26-b0e3-9972eeaca7d8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fc091bfd-0b1d-4767-a61e-909c65e015ec</sRegionId>
<sVehicleTypeId>fddc266c-7831-4e7e-8311-1ff4a2c892ce</sVehicleTypeId>
<PersonVehicleId>98f5e31d-0391-48ed-af7a-ef236b61d526</PersonVehicleId>
<VehicleId>db47c5b9-6f63-4f46-b1b7-74a5623b6a71</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>ea6c773a-c8a5-4a26-b0e3-9972eeaca7d8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fc091bfd-0b1d-4767-a61e-909c65e015ec</sRegionId>
<sVehicleTypeId>fddc266c-7831-4e7e-8311-1ff4a2c892ce</sVehicleTypeId>
<PersonVehicleId>98f5e31d-0391-48ed-af7a-ef236b61d526</PersonVehicleId>
<VehicleId>db47c5b9-6f63-4f46-b1b7-74a5623b6a71</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>