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": "1d2327af-1e9f-4391-b903-9bd279aa7128",
"Vehicles": [
{
"VehicleId": "fb4aa140-0036-4e0b-9d52-636cb0f21f34",
"PersonVehicleId": "7f416452-7d28-4cb8-827e-664119696e17",
"PersonId": "0e91e756-7ba3-46d9-b635-f38f11317dab",
"sRegionId": "96741407-7926-452a-995a-2d106d5da0cf",
"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": "aa827b05-02c2-4a67-8139-686c0af262a2"
},
{
"VehicleId": "fb4aa140-0036-4e0b-9d52-636cb0f21f34",
"PersonVehicleId": "7f416452-7d28-4cb8-827e-664119696e17",
"PersonId": "0e91e756-7ba3-46d9-b635-f38f11317dab",
"sRegionId": "96741407-7926-452a-995a-2d106d5da0cf",
"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": "aa827b05-02c2-4a67-8139-686c0af262a2"
}
]
}
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>1d2327af-1e9f-4391-b903-9bd279aa7128</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>0e91e756-7ba3-46d9-b635-f38f11317dab</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>96741407-7926-452a-995a-2d106d5da0cf</sRegionId>
<sVehicleTypeId>aa827b05-02c2-4a67-8139-686c0af262a2</sVehicleTypeId>
<PersonVehicleId>7f416452-7d28-4cb8-827e-664119696e17</PersonVehicleId>
<VehicleId>fb4aa140-0036-4e0b-9d52-636cb0f21f34</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>0e91e756-7ba3-46d9-b635-f38f11317dab</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>96741407-7926-452a-995a-2d106d5da0cf</sRegionId>
<sVehicleTypeId>aa827b05-02c2-4a67-8139-686c0af262a2</sVehicleTypeId>
<PersonVehicleId>7f416452-7d28-4cb8-827e-664119696e17</PersonVehicleId>
<VehicleId>fb4aa140-0036-4e0b-9d52-636cb0f21f34</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>