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": "e980e241-0225-4d0f-a0cb-26eab4e69c0e",
"Vehicles": [
{
"VehicleId": "c69a6c4a-d850-4adb-9ae5-3ad63aae1376",
"PersonVehicleId": "4dff43a3-162e-4fd3-b95f-05c51fdea714",
"PersonId": "73c395ce-f005-42cd-aa5e-ffbdae4505e1",
"sRegionId": "b629595e-3f8c-4e4e-a88e-327c8593184b",
"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": "978e916c-6c53-4161-bfd7-56f185b261b9"
},
{
"VehicleId": "c69a6c4a-d850-4adb-9ae5-3ad63aae1376",
"PersonVehicleId": "4dff43a3-162e-4fd3-b95f-05c51fdea714",
"PersonId": "73c395ce-f005-42cd-aa5e-ffbdae4505e1",
"sRegionId": "b629595e-3f8c-4e4e-a88e-327c8593184b",
"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": "978e916c-6c53-4161-bfd7-56f185b261b9"
}
]
}
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>e980e241-0225-4d0f-a0cb-26eab4e69c0e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>73c395ce-f005-42cd-aa5e-ffbdae4505e1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>b629595e-3f8c-4e4e-a88e-327c8593184b</sRegionId>
<sVehicleTypeId>978e916c-6c53-4161-bfd7-56f185b261b9</sVehicleTypeId>
<PersonVehicleId>4dff43a3-162e-4fd3-b95f-05c51fdea714</PersonVehicleId>
<VehicleId>c69a6c4a-d850-4adb-9ae5-3ad63aae1376</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>73c395ce-f005-42cd-aa5e-ffbdae4505e1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>b629595e-3f8c-4e4e-a88e-327c8593184b</sRegionId>
<sVehicleTypeId>978e916c-6c53-4161-bfd7-56f185b261b9</sVehicleTypeId>
<PersonVehicleId>4dff43a3-162e-4fd3-b95f-05c51fdea714</PersonVehicleId>
<VehicleId>c69a6c4a-d850-4adb-9ae5-3ad63aae1376</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>