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": "8d4c453a-eb23-4935-b0e4-fe4eac2160f6",
"Vehicles": [
{
"VehicleId": "e9d9ba9d-a5ab-4b2f-a011-3efdcccb294e",
"PersonVehicleId": "e3e443dd-4111-4a05-a67d-30254d4a180a",
"PersonId": "c866e042-e2f1-4d06-b013-ed5073e204b1",
"sRegionId": "3c26d611-e104-439e-b100-4f3ae697dab4",
"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": "fb652bfb-b090-4643-a749-f393d0a2b58b"
},
{
"VehicleId": "e9d9ba9d-a5ab-4b2f-a011-3efdcccb294e",
"PersonVehicleId": "e3e443dd-4111-4a05-a67d-30254d4a180a",
"PersonId": "c866e042-e2f1-4d06-b013-ed5073e204b1",
"sRegionId": "3c26d611-e104-439e-b100-4f3ae697dab4",
"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": "fb652bfb-b090-4643-a749-f393d0a2b58b"
}
]
}
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>8d4c453a-eb23-4935-b0e4-fe4eac2160f6</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c866e042-e2f1-4d06-b013-ed5073e204b1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>3c26d611-e104-439e-b100-4f3ae697dab4</sRegionId>
<sVehicleTypeId>fb652bfb-b090-4643-a749-f393d0a2b58b</sVehicleTypeId>
<PersonVehicleId>e3e443dd-4111-4a05-a67d-30254d4a180a</PersonVehicleId>
<VehicleId>e9d9ba9d-a5ab-4b2f-a011-3efdcccb294e</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>c866e042-e2f1-4d06-b013-ed5073e204b1</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>3c26d611-e104-439e-b100-4f3ae697dab4</sRegionId>
<sVehicleTypeId>fb652bfb-b090-4643-a749-f393d0a2b58b</sVehicleTypeId>
<PersonVehicleId>e3e443dd-4111-4a05-a67d-30254d4a180a</PersonVehicleId>
<VehicleId>e9d9ba9d-a5ab-4b2f-a011-3efdcccb294e</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>