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": "584c2fa2-13fe-4225-b2db-f702b4c5df4e",
"Vehicles": [
{
"VehicleId": "b9c5f821-1131-42b2-85a9-2d6b0e989ba0",
"PersonVehicleId": "b07a74da-f3d7-43b1-b138-b009f7148945",
"PersonId": "61d8e471-5921-4628-b6f2-ee0dd4f9d9b5",
"sRegionId": "f1cde5cd-5c8c-4e41-8a56-e987d89399b7",
"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": "5d7c62b6-7905-4830-a0ea-e92cc1345963"
},
{
"VehicleId": "b9c5f821-1131-42b2-85a9-2d6b0e989ba0",
"PersonVehicleId": "b07a74da-f3d7-43b1-b138-b009f7148945",
"PersonId": "61d8e471-5921-4628-b6f2-ee0dd4f9d9b5",
"sRegionId": "f1cde5cd-5c8c-4e41-8a56-e987d89399b7",
"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": "5d7c62b6-7905-4830-a0ea-e92cc1345963"
}
]
}
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>584c2fa2-13fe-4225-b2db-f702b4c5df4e</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>61d8e471-5921-4628-b6f2-ee0dd4f9d9b5</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>f1cde5cd-5c8c-4e41-8a56-e987d89399b7</sRegionId>
<sVehicleTypeId>5d7c62b6-7905-4830-a0ea-e92cc1345963</sVehicleTypeId>
<PersonVehicleId>b07a74da-f3d7-43b1-b138-b009f7148945</PersonVehicleId>
<VehicleId>b9c5f821-1131-42b2-85a9-2d6b0e989ba0</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>61d8e471-5921-4628-b6f2-ee0dd4f9d9b5</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>f1cde5cd-5c8c-4e41-8a56-e987d89399b7</sRegionId>
<sVehicleTypeId>5d7c62b6-7905-4830-a0ea-e92cc1345963</sVehicleTypeId>
<PersonVehicleId>b07a74da-f3d7-43b1-b138-b009f7148945</PersonVehicleId>
<VehicleId>b9c5f821-1131-42b2-85a9-2d6b0e989ba0</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>