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": "0e3e3308-d259-4a57-a7fd-71c72438f312",
"Vehicles": [
{
"VehicleId": "f6c7924b-ad54-4768-9062-28fc8436b80e",
"PersonVehicleId": "ef8bb15f-07c6-4acd-8ba2-14bfb8e3e19f",
"PersonId": "2f13c8cf-9cfd-4f35-b058-dd6bff0ddc42",
"sRegionId": "4c13d176-9978-4827-a393-1d6db1ab7098",
"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": "497c8f8d-15ca-4706-a45e-0c467d2f3f87"
},
{
"VehicleId": "f6c7924b-ad54-4768-9062-28fc8436b80e",
"PersonVehicleId": "ef8bb15f-07c6-4acd-8ba2-14bfb8e3e19f",
"PersonId": "2f13c8cf-9cfd-4f35-b058-dd6bff0ddc42",
"sRegionId": "4c13d176-9978-4827-a393-1d6db1ab7098",
"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": "497c8f8d-15ca-4706-a45e-0c467d2f3f87"
}
]
}
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>0e3e3308-d259-4a57-a7fd-71c72438f312</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>2f13c8cf-9cfd-4f35-b058-dd6bff0ddc42</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>4c13d176-9978-4827-a393-1d6db1ab7098</sRegionId>
<sVehicleTypeId>497c8f8d-15ca-4706-a45e-0c467d2f3f87</sVehicleTypeId>
<PersonVehicleId>ef8bb15f-07c6-4acd-8ba2-14bfb8e3e19f</PersonVehicleId>
<VehicleId>f6c7924b-ad54-4768-9062-28fc8436b80e</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>2f13c8cf-9cfd-4f35-b058-dd6bff0ddc42</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>4c13d176-9978-4827-a393-1d6db1ab7098</sRegionId>
<sVehicleTypeId>497c8f8d-15ca-4706-a45e-0c467d2f3f87</sVehicleTypeId>
<PersonVehicleId>ef8bb15f-07c6-4acd-8ba2-14bfb8e3e19f</PersonVehicleId>
<VehicleId>f6c7924b-ad54-4768-9062-28fc8436b80e</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>