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": "e9819f09-d38e-4c89-83bd-8ab2c6092c24",
"Vehicles": [
{
"VehicleId": "882b435c-cf89-47a3-a7c8-e719915eaddb",
"PersonVehicleId": "1ec13517-93ea-47ba-b579-7899c271c594",
"PersonId": "e4d3ada7-ad15-4286-af52-3f0dab19e43d",
"sRegionId": "ef9dd36c-6b21-4a3f-b19c-ca527364463f",
"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": "f35b36e6-8519-4ad6-94a0-e7df84591ab5"
},
{
"VehicleId": "882b435c-cf89-47a3-a7c8-e719915eaddb",
"PersonVehicleId": "1ec13517-93ea-47ba-b579-7899c271c594",
"PersonId": "e4d3ada7-ad15-4286-af52-3f0dab19e43d",
"sRegionId": "ef9dd36c-6b21-4a3f-b19c-ca527364463f",
"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": "f35b36e6-8519-4ad6-94a0-e7df84591ab5"
}
]
}
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>e9819f09-d38e-4c89-83bd-8ab2c6092c24</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e4d3ada7-ad15-4286-af52-3f0dab19e43d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ef9dd36c-6b21-4a3f-b19c-ca527364463f</sRegionId>
<sVehicleTypeId>f35b36e6-8519-4ad6-94a0-e7df84591ab5</sVehicleTypeId>
<PersonVehicleId>1ec13517-93ea-47ba-b579-7899c271c594</PersonVehicleId>
<VehicleId>882b435c-cf89-47a3-a7c8-e719915eaddb</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>e4d3ada7-ad15-4286-af52-3f0dab19e43d</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>ef9dd36c-6b21-4a3f-b19c-ca527364463f</sRegionId>
<sVehicleTypeId>f35b36e6-8519-4ad6-94a0-e7df84591ab5</sVehicleTypeId>
<PersonVehicleId>1ec13517-93ea-47ba-b579-7899c271c594</PersonVehicleId>
<VehicleId>882b435c-cf89-47a3-a7c8-e719915eaddb</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>