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": "0eca06e8-e420-4221-befd-dd8ab8cdb39e",
"Vehicles": [
{
"VehicleId": "eb1563e1-f99c-4627-bb28-282d169cda8b",
"PersonVehicleId": "882c4b84-61c9-4926-892f-d3ca4caf74b0",
"PersonId": "43bbcfc3-4441-4af0-a6b1-21591a9c13eb",
"sRegionId": "c9d793f1-7098-4cda-877d-f0a3db7919a7",
"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": "4944c3d4-7a14-4656-8355-26c6abbef9ef"
},
{
"VehicleId": "eb1563e1-f99c-4627-bb28-282d169cda8b",
"PersonVehicleId": "882c4b84-61c9-4926-892f-d3ca4caf74b0",
"PersonId": "43bbcfc3-4441-4af0-a6b1-21591a9c13eb",
"sRegionId": "c9d793f1-7098-4cda-877d-f0a3db7919a7",
"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": "4944c3d4-7a14-4656-8355-26c6abbef9ef"
}
]
}
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>0eca06e8-e420-4221-befd-dd8ab8cdb39e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>43bbcfc3-4441-4af0-a6b1-21591a9c13eb</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c9d793f1-7098-4cda-877d-f0a3db7919a7</sRegionId>
<sVehicleTypeId>4944c3d4-7a14-4656-8355-26c6abbef9ef</sVehicleTypeId>
<PersonVehicleId>882c4b84-61c9-4926-892f-d3ca4caf74b0</PersonVehicleId>
<VehicleId>eb1563e1-f99c-4627-bb28-282d169cda8b</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>43bbcfc3-4441-4af0-a6b1-21591a9c13eb</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c9d793f1-7098-4cda-877d-f0a3db7919a7</sRegionId>
<sVehicleTypeId>4944c3d4-7a14-4656-8355-26c6abbef9ef</sVehicleTypeId>
<PersonVehicleId>882c4b84-61c9-4926-892f-d3ca4caf74b0</PersonVehicleId>
<VehicleId>eb1563e1-f99c-4627-bb28-282d169cda8b</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>