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": "46409663-7553-4332-8923-e61bd8774ba3",
"Vehicles": [
{
"VehicleId": "8464d2f7-86d9-416a-9082-c447b547a2db",
"PersonVehicleId": "b5415b05-4068-4013-a630-4f44fc646dd8",
"PersonId": "d70ad18b-6cd8-47ec-a02c-9bef609d413a",
"sRegionId": "292efe47-2818-4caa-82e7-8d3dfbd4e23e",
"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": "336bb16b-fecb-4d47-8316-825961dacbdd"
},
{
"VehicleId": "8464d2f7-86d9-416a-9082-c447b547a2db",
"PersonVehicleId": "b5415b05-4068-4013-a630-4f44fc646dd8",
"PersonId": "d70ad18b-6cd8-47ec-a02c-9bef609d413a",
"sRegionId": "292efe47-2818-4caa-82e7-8d3dfbd4e23e",
"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": "336bb16b-fecb-4d47-8316-825961dacbdd"
}
]
}
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>46409663-7553-4332-8923-e61bd8774ba3</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>d70ad18b-6cd8-47ec-a02c-9bef609d413a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>292efe47-2818-4caa-82e7-8d3dfbd4e23e</sRegionId>
<sVehicleTypeId>336bb16b-fecb-4d47-8316-825961dacbdd</sVehicleTypeId>
<PersonVehicleId>b5415b05-4068-4013-a630-4f44fc646dd8</PersonVehicleId>
<VehicleId>8464d2f7-86d9-416a-9082-c447b547a2db</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>d70ad18b-6cd8-47ec-a02c-9bef609d413a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>292efe47-2818-4caa-82e7-8d3dfbd4e23e</sRegionId>
<sVehicleTypeId>336bb16b-fecb-4d47-8316-825961dacbdd</sVehicleTypeId>
<PersonVehicleId>b5415b05-4068-4013-a630-4f44fc646dd8</PersonVehicleId>
<VehicleId>8464d2f7-86d9-416a-9082-c447b547a2db</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>