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": "7055f259-ed0e-444d-806b-8947ec90e80e",
"Vehicles": [
{
"VehicleId": "1cc55a3b-8450-4534-bb22-719256437309",
"PersonVehicleId": "ca08481e-7cf0-47c9-8289-35cecd9888fd",
"PersonId": "b580d8d4-53df-475d-bcb4-525aa985f399",
"sRegionId": "4d597d9f-d5c3-4a46-b789-5c80d329fb15",
"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": "956c25a4-f6c4-4bc2-853c-36d04066fddd"
},
{
"VehicleId": "1cc55a3b-8450-4534-bb22-719256437309",
"PersonVehicleId": "ca08481e-7cf0-47c9-8289-35cecd9888fd",
"PersonId": "b580d8d4-53df-475d-bcb4-525aa985f399",
"sRegionId": "4d597d9f-d5c3-4a46-b789-5c80d329fb15",
"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": "956c25a4-f6c4-4bc2-853c-36d04066fddd"
}
]
}
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>7055f259-ed0e-444d-806b-8947ec90e80e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b580d8d4-53df-475d-bcb4-525aa985f399</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>4d597d9f-d5c3-4a46-b789-5c80d329fb15</sRegionId>
<sVehicleTypeId>956c25a4-f6c4-4bc2-853c-36d04066fddd</sVehicleTypeId>
<PersonVehicleId>ca08481e-7cf0-47c9-8289-35cecd9888fd</PersonVehicleId>
<VehicleId>1cc55a3b-8450-4534-bb22-719256437309</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>b580d8d4-53df-475d-bcb4-525aa985f399</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>4d597d9f-d5c3-4a46-b789-5c80d329fb15</sRegionId>
<sVehicleTypeId>956c25a4-f6c4-4bc2-853c-36d04066fddd</sVehicleTypeId>
<PersonVehicleId>ca08481e-7cf0-47c9-8289-35cecd9888fd</PersonVehicleId>
<VehicleId>1cc55a3b-8450-4534-bb22-719256437309</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>