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": "da15a86e-f35c-4f03-bc1b-73e6d438df86",
"Vehicles": [
{
"VehicleId": "bcfcb4c4-c5c1-40c1-be8f-6ac1932cdda1",
"PersonVehicleId": "213e08fa-1092-4581-b7de-91ccb5511dab",
"PersonId": "66916e4c-77a5-44ea-9ef3-74508caa205f",
"sRegionId": "81bdec2d-cfe6-4649-b90c-74d81b23660b",
"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": "5ce70c5e-5604-49ca-9331-56e7c2b7ce5f"
},
{
"VehicleId": "bcfcb4c4-c5c1-40c1-be8f-6ac1932cdda1",
"PersonVehicleId": "213e08fa-1092-4581-b7de-91ccb5511dab",
"PersonId": "66916e4c-77a5-44ea-9ef3-74508caa205f",
"sRegionId": "81bdec2d-cfe6-4649-b90c-74d81b23660b",
"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": "5ce70c5e-5604-49ca-9331-56e7c2b7ce5f"
}
]
}
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>da15a86e-f35c-4f03-bc1b-73e6d438df86</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>66916e4c-77a5-44ea-9ef3-74508caa205f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>81bdec2d-cfe6-4649-b90c-74d81b23660b</sRegionId>
<sVehicleTypeId>5ce70c5e-5604-49ca-9331-56e7c2b7ce5f</sVehicleTypeId>
<PersonVehicleId>213e08fa-1092-4581-b7de-91ccb5511dab</PersonVehicleId>
<VehicleId>bcfcb4c4-c5c1-40c1-be8f-6ac1932cdda1</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>66916e4c-77a5-44ea-9ef3-74508caa205f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>81bdec2d-cfe6-4649-b90c-74d81b23660b</sRegionId>
<sVehicleTypeId>5ce70c5e-5604-49ca-9331-56e7c2b7ce5f</sVehicleTypeId>
<PersonVehicleId>213e08fa-1092-4581-b7de-91ccb5511dab</PersonVehicleId>
<VehicleId>bcfcb4c4-c5c1-40c1-be8f-6ac1932cdda1</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>