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": "f22154a7-e078-4a84-9272-4fb1de2b610e",
"Vehicles": [
{
"VehicleId": "525b295f-e243-4f94-a059-49d72fb86603",
"PersonVehicleId": "d376a7ec-13ac-4dfd-b7b7-3cb1fcab58b7",
"PersonId": "71cbe42c-700c-4f8e-bcfa-2a432d3ad80d",
"sRegionId": "dcc9b6b6-3298-4201-bc53-ee4729c37c2a",
"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": "612a2363-09bb-4cd5-807e-9e4c30c3b7a0"
},
{
"VehicleId": "525b295f-e243-4f94-a059-49d72fb86603",
"PersonVehicleId": "d376a7ec-13ac-4dfd-b7b7-3cb1fcab58b7",
"PersonId": "71cbe42c-700c-4f8e-bcfa-2a432d3ad80d",
"sRegionId": "dcc9b6b6-3298-4201-bc53-ee4729c37c2a",
"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": "612a2363-09bb-4cd5-807e-9e4c30c3b7a0"
}
]
}
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>f22154a7-e078-4a84-9272-4fb1de2b610e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>71cbe42c-700c-4f8e-bcfa-2a432d3ad80d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>dcc9b6b6-3298-4201-bc53-ee4729c37c2a</sRegionId>
<sVehicleTypeId>612a2363-09bb-4cd5-807e-9e4c30c3b7a0</sVehicleTypeId>
<PersonVehicleId>d376a7ec-13ac-4dfd-b7b7-3cb1fcab58b7</PersonVehicleId>
<VehicleId>525b295f-e243-4f94-a059-49d72fb86603</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>71cbe42c-700c-4f8e-bcfa-2a432d3ad80d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>dcc9b6b6-3298-4201-bc53-ee4729c37c2a</sRegionId>
<sVehicleTypeId>612a2363-09bb-4cd5-807e-9e4c30c3b7a0</sVehicleTypeId>
<PersonVehicleId>d376a7ec-13ac-4dfd-b7b7-3cb1fcab58b7</PersonVehicleId>
<VehicleId>525b295f-e243-4f94-a059-49d72fb86603</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>