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": "d472074f-18d1-40be-bd23-58918ad69ad0",
"Vehicles": [
{
"VehicleId": "658c209b-3cd9-412c-9645-a9965400471b",
"PersonVehicleId": "bf23b58e-48ee-43d2-a77c-238312869b87",
"PersonId": "7ed3ab15-df47-45a3-b2ab-791005e30073",
"sRegionId": "aabde168-6662-4c20-9830-5a1244b170b1",
"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": "c5dd602f-a582-4bea-b5c0-434941085bb9"
},
{
"VehicleId": "658c209b-3cd9-412c-9645-a9965400471b",
"PersonVehicleId": "bf23b58e-48ee-43d2-a77c-238312869b87",
"PersonId": "7ed3ab15-df47-45a3-b2ab-791005e30073",
"sRegionId": "aabde168-6662-4c20-9830-5a1244b170b1",
"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": "c5dd602f-a582-4bea-b5c0-434941085bb9"
}
]
}
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>d472074f-18d1-40be-bd23-58918ad69ad0</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7ed3ab15-df47-45a3-b2ab-791005e30073</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>aabde168-6662-4c20-9830-5a1244b170b1</sRegionId>
<sVehicleTypeId>c5dd602f-a582-4bea-b5c0-434941085bb9</sVehicleTypeId>
<PersonVehicleId>bf23b58e-48ee-43d2-a77c-238312869b87</PersonVehicleId>
<VehicleId>658c209b-3cd9-412c-9645-a9965400471b</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>7ed3ab15-df47-45a3-b2ab-791005e30073</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>aabde168-6662-4c20-9830-5a1244b170b1</sRegionId>
<sVehicleTypeId>c5dd602f-a582-4bea-b5c0-434941085bb9</sVehicleTypeId>
<PersonVehicleId>bf23b58e-48ee-43d2-a77c-238312869b87</PersonVehicleId>
<VehicleId>658c209b-3cd9-412c-9645-a9965400471b</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>