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": "91e7ce51-6f21-4584-ad83-90833720be0a",
"Vehicles": [
{
"VehicleId": "741ae3f8-703e-4f54-8683-32162d514468",
"PersonVehicleId": "f06f9a55-3282-409e-bb73-502fcbddfe26",
"PersonId": "66731b10-9976-4624-b01c-eeff12a1fee3",
"sRegionId": "db12aae8-d3db-4ebd-a989-845640b32dc4",
"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": "67545be1-ddf0-4344-a2bf-56f0f470f502"
},
{
"VehicleId": "741ae3f8-703e-4f54-8683-32162d514468",
"PersonVehicleId": "f06f9a55-3282-409e-bb73-502fcbddfe26",
"PersonId": "66731b10-9976-4624-b01c-eeff12a1fee3",
"sRegionId": "db12aae8-d3db-4ebd-a989-845640b32dc4",
"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": "67545be1-ddf0-4344-a2bf-56f0f470f502"
}
]
}
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>91e7ce51-6f21-4584-ad83-90833720be0a</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>66731b10-9976-4624-b01c-eeff12a1fee3</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>db12aae8-d3db-4ebd-a989-845640b32dc4</sRegionId>
<sVehicleTypeId>67545be1-ddf0-4344-a2bf-56f0f470f502</sVehicleTypeId>
<PersonVehicleId>f06f9a55-3282-409e-bb73-502fcbddfe26</PersonVehicleId>
<VehicleId>741ae3f8-703e-4f54-8683-32162d514468</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>66731b10-9976-4624-b01c-eeff12a1fee3</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>db12aae8-d3db-4ebd-a989-845640b32dc4</sRegionId>
<sVehicleTypeId>67545be1-ddf0-4344-a2bf-56f0f470f502</sVehicleTypeId>
<PersonVehicleId>f06f9a55-3282-409e-bb73-502fcbddfe26</PersonVehicleId>
<VehicleId>741ae3f8-703e-4f54-8683-32162d514468</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>