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": "3fbd3e79-d145-4c9e-88da-ee195e45049a",
"Vehicles": [
{
"VehicleId": "da6f187e-b992-4aea-9316-b4b639299b00",
"PersonVehicleId": "355d4866-795b-4110-b0bd-72881faba071",
"PersonId": "4bf04b81-d0c2-468e-83df-1684e8fc9c2a",
"sRegionId": "ab8fdee3-0f5b-4b76-abb7-e5adc1ed068d",
"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": "6cc5be02-fa88-41d4-ad04-771b78817c5a"
},
{
"VehicleId": "da6f187e-b992-4aea-9316-b4b639299b00",
"PersonVehicleId": "355d4866-795b-4110-b0bd-72881faba071",
"PersonId": "4bf04b81-d0c2-468e-83df-1684e8fc9c2a",
"sRegionId": "ab8fdee3-0f5b-4b76-abb7-e5adc1ed068d",
"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": "6cc5be02-fa88-41d4-ad04-771b78817c5a"
}
]
}
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>3fbd3e79-d145-4c9e-88da-ee195e45049a</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>4bf04b81-d0c2-468e-83df-1684e8fc9c2a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ab8fdee3-0f5b-4b76-abb7-e5adc1ed068d</sRegionId>
<sVehicleTypeId>6cc5be02-fa88-41d4-ad04-771b78817c5a</sVehicleTypeId>
<PersonVehicleId>355d4866-795b-4110-b0bd-72881faba071</PersonVehicleId>
<VehicleId>da6f187e-b992-4aea-9316-b4b639299b00</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>4bf04b81-d0c2-468e-83df-1684e8fc9c2a</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ab8fdee3-0f5b-4b76-abb7-e5adc1ed068d</sRegionId>
<sVehicleTypeId>6cc5be02-fa88-41d4-ad04-771b78817c5a</sVehicleTypeId>
<PersonVehicleId>355d4866-795b-4110-b0bd-72881faba071</PersonVehicleId>
<VehicleId>da6f187e-b992-4aea-9316-b4b639299b00</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>