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": "0aaa6ca1-c266-4834-8583-fba9608b0f72",
"Vehicles": [
{
"VehicleId": "ccd7afdf-c0b5-4363-a6eb-0d15cc21ea1a",
"PersonVehicleId": "d732ac05-8408-4a00-914f-7acd5f4f3ed1",
"PersonId": "01b3cfa6-07c3-4780-b63e-43252da7eb89",
"sRegionId": "acc4a25b-1ec7-4802-b872-161b60e4ef3f",
"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": "33de4331-a3d0-4932-8603-cb5eaa340e50"
},
{
"VehicleId": "ccd7afdf-c0b5-4363-a6eb-0d15cc21ea1a",
"PersonVehicleId": "d732ac05-8408-4a00-914f-7acd5f4f3ed1",
"PersonId": "01b3cfa6-07c3-4780-b63e-43252da7eb89",
"sRegionId": "acc4a25b-1ec7-4802-b872-161b60e4ef3f",
"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": "33de4331-a3d0-4932-8603-cb5eaa340e50"
}
]
}
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>0aaa6ca1-c266-4834-8583-fba9608b0f72</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>01b3cfa6-07c3-4780-b63e-43252da7eb89</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>acc4a25b-1ec7-4802-b872-161b60e4ef3f</sRegionId>
<sVehicleTypeId>33de4331-a3d0-4932-8603-cb5eaa340e50</sVehicleTypeId>
<PersonVehicleId>d732ac05-8408-4a00-914f-7acd5f4f3ed1</PersonVehicleId>
<VehicleId>ccd7afdf-c0b5-4363-a6eb-0d15cc21ea1a</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>01b3cfa6-07c3-4780-b63e-43252da7eb89</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>acc4a25b-1ec7-4802-b872-161b60e4ef3f</sRegionId>
<sVehicleTypeId>33de4331-a3d0-4932-8603-cb5eaa340e50</sVehicleTypeId>
<PersonVehicleId>d732ac05-8408-4a00-914f-7acd5f4f3ed1</PersonVehicleId>
<VehicleId>ccd7afdf-c0b5-4363-a6eb-0d15cc21ea1a</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>