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": "d1dc7939-7b1a-4ffd-8dbf-84e7339e6d63",
"Vehicles": [
{
"VehicleId": "a66580ca-6627-40fb-896d-413600a95254",
"PersonVehicleId": "dd808081-4727-4dac-bc8f-d2a86f28242f",
"PersonId": "9db5b612-16f0-4a08-9171-14bd1179aded",
"sRegionId": "d85520c1-2fa4-4c84-8850-399fd824a375",
"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": "df89941a-e690-4d47-899d-ac46c91a7c1e"
},
{
"VehicleId": "a66580ca-6627-40fb-896d-413600a95254",
"PersonVehicleId": "dd808081-4727-4dac-bc8f-d2a86f28242f",
"PersonId": "9db5b612-16f0-4a08-9171-14bd1179aded",
"sRegionId": "d85520c1-2fa4-4c84-8850-399fd824a375",
"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": "df89941a-e690-4d47-899d-ac46c91a7c1e"
}
]
}
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>d1dc7939-7b1a-4ffd-8dbf-84e7339e6d63</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>9db5b612-16f0-4a08-9171-14bd1179aded</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d85520c1-2fa4-4c84-8850-399fd824a375</sRegionId>
<sVehicleTypeId>df89941a-e690-4d47-899d-ac46c91a7c1e</sVehicleTypeId>
<PersonVehicleId>dd808081-4727-4dac-bc8f-d2a86f28242f</PersonVehicleId>
<VehicleId>a66580ca-6627-40fb-896d-413600a95254</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>9db5b612-16f0-4a08-9171-14bd1179aded</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>d85520c1-2fa4-4c84-8850-399fd824a375</sRegionId>
<sVehicleTypeId>df89941a-e690-4d47-899d-ac46c91a7c1e</sVehicleTypeId>
<PersonVehicleId>dd808081-4727-4dac-bc8f-d2a86f28242f</PersonVehicleId>
<VehicleId>a66580ca-6627-40fb-896d-413600a95254</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>