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": "80c2e03f-a2e7-4ace-a67c-ea4695f87b67",
"Vehicles": [
{
"VehicleId": "37720dc3-5177-43c3-b87e-09c956f76771",
"PersonVehicleId": "d02867eb-186b-4dbc-81ac-a969cacee795",
"PersonId": "240cd0d5-e7f3-4049-a15b-5e6101071993",
"sRegionId": "fd4a843d-ce9f-4d2b-856d-491b95ff91d8",
"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": "c0223590-524f-41fd-96b3-a59286a4cd8b"
},
{
"VehicleId": "37720dc3-5177-43c3-b87e-09c956f76771",
"PersonVehicleId": "d02867eb-186b-4dbc-81ac-a969cacee795",
"PersonId": "240cd0d5-e7f3-4049-a15b-5e6101071993",
"sRegionId": "fd4a843d-ce9f-4d2b-856d-491b95ff91d8",
"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": "c0223590-524f-41fd-96b3-a59286a4cd8b"
}
]
}
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>80c2e03f-a2e7-4ace-a67c-ea4695f87b67</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>240cd0d5-e7f3-4049-a15b-5e6101071993</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fd4a843d-ce9f-4d2b-856d-491b95ff91d8</sRegionId>
<sVehicleTypeId>c0223590-524f-41fd-96b3-a59286a4cd8b</sVehicleTypeId>
<PersonVehicleId>d02867eb-186b-4dbc-81ac-a969cacee795</PersonVehicleId>
<VehicleId>37720dc3-5177-43c3-b87e-09c956f76771</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>240cd0d5-e7f3-4049-a15b-5e6101071993</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>fd4a843d-ce9f-4d2b-856d-491b95ff91d8</sRegionId>
<sVehicleTypeId>c0223590-524f-41fd-96b3-a59286a4cd8b</sVehicleTypeId>
<PersonVehicleId>d02867eb-186b-4dbc-81ac-a969cacee795</PersonVehicleId>
<VehicleId>37720dc3-5177-43c3-b87e-09c956f76771</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>