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": "8eb4f5fc-4cb8-486e-a24a-65b4bc9b4ad8",
"Vehicles": [
{
"VehicleId": "0b2d9ace-554a-440a-89fd-11556b614811",
"PersonVehicleId": "87c694e6-ae86-4faf-8302-b5edc6e383b1",
"PersonId": "b73f1e7c-9ca4-49d7-81e9-5eb5004f7a6d",
"sRegionId": "a104435a-2f7c-40fd-88d6-207c4a5bfaaa",
"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": "db3d7030-7ae1-458a-98e6-246077b934cc"
},
{
"VehicleId": "0b2d9ace-554a-440a-89fd-11556b614811",
"PersonVehicleId": "87c694e6-ae86-4faf-8302-b5edc6e383b1",
"PersonId": "b73f1e7c-9ca4-49d7-81e9-5eb5004f7a6d",
"sRegionId": "a104435a-2f7c-40fd-88d6-207c4a5bfaaa",
"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": "db3d7030-7ae1-458a-98e6-246077b934cc"
}
]
}
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>8eb4f5fc-4cb8-486e-a24a-65b4bc9b4ad8</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b73f1e7c-9ca4-49d7-81e9-5eb5004f7a6d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a104435a-2f7c-40fd-88d6-207c4a5bfaaa</sRegionId>
<sVehicleTypeId>db3d7030-7ae1-458a-98e6-246077b934cc</sVehicleTypeId>
<PersonVehicleId>87c694e6-ae86-4faf-8302-b5edc6e383b1</PersonVehicleId>
<VehicleId>0b2d9ace-554a-440a-89fd-11556b614811</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b73f1e7c-9ca4-49d7-81e9-5eb5004f7a6d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>a104435a-2f7c-40fd-88d6-207c4a5bfaaa</sRegionId>
<sVehicleTypeId>db3d7030-7ae1-458a-98e6-246077b934cc</sVehicleTypeId>
<PersonVehicleId>87c694e6-ae86-4faf-8302-b5edc6e383b1</PersonVehicleId>
<VehicleId>0b2d9ace-554a-440a-89fd-11556b614811</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>