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": "35684ff6-5213-4cb9-8b8f-85a3ba5a3488",
"Vehicles": [
{
"VehicleId": "1eac1de3-880e-4411-9e28-e3323aaf8c5c",
"PersonVehicleId": "6f75db6f-bdab-4882-94a0-817fc94e6a97",
"PersonId": "06682944-a02e-46c7-83e4-5cf03e048649",
"sRegionId": "1f999a8c-cfea-4247-afd3-8fc216be0a7d",
"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": "74751b36-e239-4f75-8112-7665dbb65af1"
},
{
"VehicleId": "1eac1de3-880e-4411-9e28-e3323aaf8c5c",
"PersonVehicleId": "6f75db6f-bdab-4882-94a0-817fc94e6a97",
"PersonId": "06682944-a02e-46c7-83e4-5cf03e048649",
"sRegionId": "1f999a8c-cfea-4247-afd3-8fc216be0a7d",
"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": "74751b36-e239-4f75-8112-7665dbb65af1"
}
]
}
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>35684ff6-5213-4cb9-8b8f-85a3ba5a3488</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>06682944-a02e-46c7-83e4-5cf03e048649</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>1f999a8c-cfea-4247-afd3-8fc216be0a7d</sRegionId>
<sVehicleTypeId>74751b36-e239-4f75-8112-7665dbb65af1</sVehicleTypeId>
<PersonVehicleId>6f75db6f-bdab-4882-94a0-817fc94e6a97</PersonVehicleId>
<VehicleId>1eac1de3-880e-4411-9e28-e3323aaf8c5c</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>06682944-a02e-46c7-83e4-5cf03e048649</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>1f999a8c-cfea-4247-afd3-8fc216be0a7d</sRegionId>
<sVehicleTypeId>74751b36-e239-4f75-8112-7665dbb65af1</sVehicleTypeId>
<PersonVehicleId>6f75db6f-bdab-4882-94a0-817fc94e6a97</PersonVehicleId>
<VehicleId>1eac1de3-880e-4411-9e28-e3323aaf8c5c</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>