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": "7f145657-8d94-46ca-9842-ab6d85ba6a01",
"Vehicles": [
{
"VehicleId": "a55495ef-cfff-4e00-8e7a-da961a05d393",
"PersonVehicleId": "d1a26e35-158b-4160-9834-6ee5b150235c",
"PersonId": "570fd9ab-4363-4c29-863e-1a9e25787bdb",
"sRegionId": "fa9c17c4-c248-4cb7-9703-c4f9d66443ac",
"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": "67765a7f-129f-4b18-885e-38ba263d2d30"
},
{
"VehicleId": "a55495ef-cfff-4e00-8e7a-da961a05d393",
"PersonVehicleId": "d1a26e35-158b-4160-9834-6ee5b150235c",
"PersonId": "570fd9ab-4363-4c29-863e-1a9e25787bdb",
"sRegionId": "fa9c17c4-c248-4cb7-9703-c4f9d66443ac",
"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": "67765a7f-129f-4b18-885e-38ba263d2d30"
}
]
}
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>7f145657-8d94-46ca-9842-ab6d85ba6a01</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>570fd9ab-4363-4c29-863e-1a9e25787bdb</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fa9c17c4-c248-4cb7-9703-c4f9d66443ac</sRegionId>
<sVehicleTypeId>67765a7f-129f-4b18-885e-38ba263d2d30</sVehicleTypeId>
<PersonVehicleId>d1a26e35-158b-4160-9834-6ee5b150235c</PersonVehicleId>
<VehicleId>a55495ef-cfff-4e00-8e7a-da961a05d393</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>570fd9ab-4363-4c29-863e-1a9e25787bdb</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fa9c17c4-c248-4cb7-9703-c4f9d66443ac</sRegionId>
<sVehicleTypeId>67765a7f-129f-4b18-885e-38ba263d2d30</sVehicleTypeId>
<PersonVehicleId>d1a26e35-158b-4160-9834-6ee5b150235c</PersonVehicleId>
<VehicleId>a55495ef-cfff-4e00-8e7a-da961a05d393</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>