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": "05985fd0-0f8b-4e7f-9f91-50fff3872b33",
"Vehicles": [
{
"VehicleId": "f3ceed78-c372-455f-b085-b86e26d5069d",
"PersonVehicleId": "d25450d6-174d-467d-96e5-46856334bc6c",
"PersonId": "f00ca480-3408-4b72-8806-68419af2d7e0",
"sRegionId": "c9153a9e-72d4-41af-84b3-22001b94def5",
"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": "7267a910-8e4b-4337-8aff-33849f6f59d4"
},
{
"VehicleId": "f3ceed78-c372-455f-b085-b86e26d5069d",
"PersonVehicleId": "d25450d6-174d-467d-96e5-46856334bc6c",
"PersonId": "f00ca480-3408-4b72-8806-68419af2d7e0",
"sRegionId": "c9153a9e-72d4-41af-84b3-22001b94def5",
"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": "7267a910-8e4b-4337-8aff-33849f6f59d4"
}
]
}
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>05985fd0-0f8b-4e7f-9f91-50fff3872b33</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f00ca480-3408-4b72-8806-68419af2d7e0</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c9153a9e-72d4-41af-84b3-22001b94def5</sRegionId>
<sVehicleTypeId>7267a910-8e4b-4337-8aff-33849f6f59d4</sVehicleTypeId>
<PersonVehicleId>d25450d6-174d-467d-96e5-46856334bc6c</PersonVehicleId>
<VehicleId>f3ceed78-c372-455f-b085-b86e26d5069d</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>f00ca480-3408-4b72-8806-68419af2d7e0</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>c9153a9e-72d4-41af-84b3-22001b94def5</sRegionId>
<sVehicleTypeId>7267a910-8e4b-4337-8aff-33849f6f59d4</sVehicleTypeId>
<PersonVehicleId>d25450d6-174d-467d-96e5-46856334bc6c</PersonVehicleId>
<VehicleId>f3ceed78-c372-455f-b085-b86e26d5069d</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>