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": "5a811527-a189-4299-86ed-bfc3de3e9161",
"Vehicles": [
{
"VehicleId": "8a1f3e5f-b02c-4f2f-9d18-066055c025a4",
"PersonVehicleId": "0f3a222f-c83a-4577-bea2-e02afcc0dd99",
"PersonId": "5fd109ed-bcaa-4b4f-bd2d-7324e6e5f4a8",
"sRegionId": "ea981d18-ab4f-4a49-a4b2-96caefa80ac7",
"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": "c6f9018a-9de7-4029-8cc8-109237f67696"
},
{
"VehicleId": "8a1f3e5f-b02c-4f2f-9d18-066055c025a4",
"PersonVehicleId": "0f3a222f-c83a-4577-bea2-e02afcc0dd99",
"PersonId": "5fd109ed-bcaa-4b4f-bd2d-7324e6e5f4a8",
"sRegionId": "ea981d18-ab4f-4a49-a4b2-96caefa80ac7",
"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": "c6f9018a-9de7-4029-8cc8-109237f67696"
}
]
}
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>5a811527-a189-4299-86ed-bfc3de3e9161</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>5fd109ed-bcaa-4b4f-bd2d-7324e6e5f4a8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ea981d18-ab4f-4a49-a4b2-96caefa80ac7</sRegionId>
<sVehicleTypeId>c6f9018a-9de7-4029-8cc8-109237f67696</sVehicleTypeId>
<PersonVehicleId>0f3a222f-c83a-4577-bea2-e02afcc0dd99</PersonVehicleId>
<VehicleId>8a1f3e5f-b02c-4f2f-9d18-066055c025a4</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>5fd109ed-bcaa-4b4f-bd2d-7324e6e5f4a8</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ea981d18-ab4f-4a49-a4b2-96caefa80ac7</sRegionId>
<sVehicleTypeId>c6f9018a-9de7-4029-8cc8-109237f67696</sVehicleTypeId>
<PersonVehicleId>0f3a222f-c83a-4577-bea2-e02afcc0dd99</PersonVehicleId>
<VehicleId>8a1f3e5f-b02c-4f2f-9d18-066055c025a4</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>