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": "11051ccf-0e42-4cde-9296-c4684d45f037",
"Vehicles": [
{
"VehicleId": "e22dfc67-c7c0-4be7-b92d-23eafeab6b5c",
"PersonVehicleId": "1127653f-b41d-4943-9da4-213aad7ffb3f",
"PersonId": "b315cab5-d872-45fb-b48c-0e2a99530729",
"sRegionId": "c44c61db-d51e-421d-a077-b3e06f48d360",
"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": "6a76d9f9-95b5-40f4-8018-9ca59994e476"
},
{
"VehicleId": "e22dfc67-c7c0-4be7-b92d-23eafeab6b5c",
"PersonVehicleId": "1127653f-b41d-4943-9da4-213aad7ffb3f",
"PersonId": "b315cab5-d872-45fb-b48c-0e2a99530729",
"sRegionId": "c44c61db-d51e-421d-a077-b3e06f48d360",
"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": "6a76d9f9-95b5-40f4-8018-9ca59994e476"
}
]
}
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>11051ccf-0e42-4cde-9296-c4684d45f037</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b315cab5-d872-45fb-b48c-0e2a99530729</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c44c61db-d51e-421d-a077-b3e06f48d360</sRegionId>
<sVehicleTypeId>6a76d9f9-95b5-40f4-8018-9ca59994e476</sVehicleTypeId>
<PersonVehicleId>1127653f-b41d-4943-9da4-213aad7ffb3f</PersonVehicleId>
<VehicleId>e22dfc67-c7c0-4be7-b92d-23eafeab6b5c</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b315cab5-d872-45fb-b48c-0e2a99530729</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c44c61db-d51e-421d-a077-b3e06f48d360</sRegionId>
<sVehicleTypeId>6a76d9f9-95b5-40f4-8018-9ca59994e476</sVehicleTypeId>
<PersonVehicleId>1127653f-b41d-4943-9da4-213aad7ffb3f</PersonVehicleId>
<VehicleId>e22dfc67-c7c0-4be7-b92d-23eafeab6b5c</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>