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": "66898fbf-57cd-41da-9625-7749240e4251",
"Vehicles": [
{
"VehicleId": "396626a0-7337-438c-9aa6-9de776a08364",
"PersonVehicleId": "899f28c5-5b85-477a-84b3-72cd32a5849d",
"PersonId": "7ff1bca3-8513-466f-9d00-e735ae7bba9f",
"sRegionId": "0899d375-285e-423b-8ea5-34417553f3e7",
"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": "f90dcc61-afce-4d65-a95e-6f6ce55eaa97"
},
{
"VehicleId": "396626a0-7337-438c-9aa6-9de776a08364",
"PersonVehicleId": "899f28c5-5b85-477a-84b3-72cd32a5849d",
"PersonId": "7ff1bca3-8513-466f-9d00-e735ae7bba9f",
"sRegionId": "0899d375-285e-423b-8ea5-34417553f3e7",
"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": "f90dcc61-afce-4d65-a95e-6f6ce55eaa97"
}
]
}
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>66898fbf-57cd-41da-9625-7749240e4251</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7ff1bca3-8513-466f-9d00-e735ae7bba9f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>0899d375-285e-423b-8ea5-34417553f3e7</sRegionId>
<sVehicleTypeId>f90dcc61-afce-4d65-a95e-6f6ce55eaa97</sVehicleTypeId>
<PersonVehicleId>899f28c5-5b85-477a-84b3-72cd32a5849d</PersonVehicleId>
<VehicleId>396626a0-7337-438c-9aa6-9de776a08364</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7ff1bca3-8513-466f-9d00-e735ae7bba9f</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>0899d375-285e-423b-8ea5-34417553f3e7</sRegionId>
<sVehicleTypeId>f90dcc61-afce-4d65-a95e-6f6ce55eaa97</sVehicleTypeId>
<PersonVehicleId>899f28c5-5b85-477a-84b3-72cd32a5849d</PersonVehicleId>
<VehicleId>396626a0-7337-438c-9aa6-9de776a08364</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>