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": "7a472a2e-04b4-4b7e-9002-d083d4696a47",
"Vehicles": [
{
"VehicleId": "8051cda7-7b44-4f3b-b0e3-022056d808bb",
"PersonVehicleId": "7bec3921-99f4-418f-b6b7-9d88dff2c064",
"PersonId": "63e0bb5d-e135-4903-9374-551748fc473d",
"sRegionId": "a5a8f214-53e8-457c-bf9c-42aff8a06c8a",
"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": "7d2f5fa0-a061-4f16-a26b-889e5080b34c"
},
{
"VehicleId": "8051cda7-7b44-4f3b-b0e3-022056d808bb",
"PersonVehicleId": "7bec3921-99f4-418f-b6b7-9d88dff2c064",
"PersonId": "63e0bb5d-e135-4903-9374-551748fc473d",
"sRegionId": "a5a8f214-53e8-457c-bf9c-42aff8a06c8a",
"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": "7d2f5fa0-a061-4f16-a26b-889e5080b34c"
}
]
}
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>7a472a2e-04b4-4b7e-9002-d083d4696a47</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>63e0bb5d-e135-4903-9374-551748fc473d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a5a8f214-53e8-457c-bf9c-42aff8a06c8a</sRegionId>
<sVehicleTypeId>7d2f5fa0-a061-4f16-a26b-889e5080b34c</sVehicleTypeId>
<PersonVehicleId>7bec3921-99f4-418f-b6b7-9d88dff2c064</PersonVehicleId>
<VehicleId>8051cda7-7b44-4f3b-b0e3-022056d808bb</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>63e0bb5d-e135-4903-9374-551748fc473d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a5a8f214-53e8-457c-bf9c-42aff8a06c8a</sRegionId>
<sVehicleTypeId>7d2f5fa0-a061-4f16-a26b-889e5080b34c</sVehicleTypeId>
<PersonVehicleId>7bec3921-99f4-418f-b6b7-9d88dff2c064</PersonVehicleId>
<VehicleId>8051cda7-7b44-4f3b-b0e3-022056d808bb</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>