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": "8530b738-a400-431f-a59f-9d5d005109a6",
"Vehicles": [
{
"VehicleId": "4d044c5f-5fb3-4540-befb-f088ab239782",
"PersonVehicleId": "20da6713-495b-405d-b367-d606903d5395",
"PersonId": "1693a51b-ae38-4921-9d83-9f10183708d6",
"sRegionId": "2f10fb51-a87f-4e1c-bb73-a35d5b241358",
"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": "cf94d09a-cede-4fd2-a37c-a63bd48fe051"
},
{
"VehicleId": "4d044c5f-5fb3-4540-befb-f088ab239782",
"PersonVehicleId": "20da6713-495b-405d-b367-d606903d5395",
"PersonId": "1693a51b-ae38-4921-9d83-9f10183708d6",
"sRegionId": "2f10fb51-a87f-4e1c-bb73-a35d5b241358",
"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": "cf94d09a-cede-4fd2-a37c-a63bd48fe051"
}
]
}
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>8530b738-a400-431f-a59f-9d5d005109a6</PersonId>
<Vehicles>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>1693a51b-ae38-4921-9d83-9f10183708d6</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>2f10fb51-a87f-4e1c-bb73-a35d5b241358</sRegionId>
<sVehicleTypeId>cf94d09a-cede-4fd2-a37c-a63bd48fe051</sVehicleTypeId>
<PersonVehicleId>20da6713-495b-405d-b367-d606903d5395</PersonVehicleId>
<VehicleId>4d044c5f-5fb3-4540-befb-f088ab239782</VehicleId>
</PersonUpdateVehicleViewModel>
<PersonUpdateVehicleViewModel>
<Color>sample string 9</Color>
<Description>sample string 5</Description>
<Make>sample string 7</Make>
<Model>sample string 8</Model>
<PersonId>1693a51b-ae38-4921-9d83-9f10183708d6</PersonId>
<PlateNumber>sample string 10</PlateNumber>
<Year>sample string 6</Year>
<sRegionId>2f10fb51-a87f-4e1c-bb73-a35d5b241358</sRegionId>
<sVehicleTypeId>cf94d09a-cede-4fd2-a37c-a63bd48fe051</sVehicleTypeId>
<PersonVehicleId>20da6713-495b-405d-b367-d606903d5395</PersonVehicleId>
<VehicleId>4d044c5f-5fb3-4540-befb-f088ab239782</VehicleId>
</PersonUpdateVehicleViewModel>
</Vehicles>
</PersonAndVehiclesViewModel>