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": "4054a03b-1b2f-4204-9b6f-411e927afe5f",
"Vehicles": [
{
"VehicleId": "9e1e7763-b9a3-4425-8794-24cdef3f8750",
"PersonVehicleId": "e8e3fa51-6672-4da3-8c5d-d38457dea0e9",
"PersonId": "f35069da-ee23-4c9a-9714-d47b6cbc6ad2",
"sRegionId": "17e2fb95-4017-4e4a-bc56-05c5844a85c8",
"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": "19eba8e7-a98a-4773-8834-3e1d379b49c7"
},
{
"VehicleId": "9e1e7763-b9a3-4425-8794-24cdef3f8750",
"PersonVehicleId": "e8e3fa51-6672-4da3-8c5d-d38457dea0e9",
"PersonId": "f35069da-ee23-4c9a-9714-d47b6cbc6ad2",
"sRegionId": "17e2fb95-4017-4e4a-bc56-05c5844a85c8",
"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": "19eba8e7-a98a-4773-8834-3e1d379b49c7"
}
]
}
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>4054a03b-1b2f-4204-9b6f-411e927afe5f</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f35069da-ee23-4c9a-9714-d47b6cbc6ad2</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>17e2fb95-4017-4e4a-bc56-05c5844a85c8</sRegionId>
<sVehicleTypeId>19eba8e7-a98a-4773-8834-3e1d379b49c7</sVehicleTypeId>
<PersonVehicleId>e8e3fa51-6672-4da3-8c5d-d38457dea0e9</PersonVehicleId>
<VehicleId>9e1e7763-b9a3-4425-8794-24cdef3f8750</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f35069da-ee23-4c9a-9714-d47b6cbc6ad2</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>17e2fb95-4017-4e4a-bc56-05c5844a85c8</sRegionId>
<sVehicleTypeId>19eba8e7-a98a-4773-8834-3e1d379b49c7</sVehicleTypeId>
<PersonVehicleId>e8e3fa51-6672-4da3-8c5d-d38457dea0e9</PersonVehicleId>
<VehicleId>9e1e7763-b9a3-4425-8794-24cdef3f8750</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>