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": "b30a8d31-3763-416f-8716-ed09c22ee5da",
  "Vehicles": [
    {
      "VehicleId": "9a46fe14-8025-4120-8d1c-89d3a2237874",
      "PersonVehicleId": "e401c0b0-b866-4464-a554-77321d9c20fc",
      "PersonId": "66d0c9ac-9407-4887-be22-45ec16f79435",
      "sRegionId": "ff490dde-fa95-4675-b6c2-8c5860726f43",
      "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": "b8f85668-bb09-4046-809e-64c86ad23df1"
    },
    {
      "VehicleId": "9a46fe14-8025-4120-8d1c-89d3a2237874",
      "PersonVehicleId": "e401c0b0-b866-4464-a554-77321d9c20fc",
      "PersonId": "66d0c9ac-9407-4887-be22-45ec16f79435",
      "sRegionId": "ff490dde-fa95-4675-b6c2-8c5860726f43",
      "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": "b8f85668-bb09-4046-809e-64c86ad23df1"
    }
  ]
}
        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>b30a8d31-3763-416f-8716-ed09c22ee5da</PersonId>
  <Vehicles>
    <PersonUpdateVehicleViewModel>
      <Color>sample string 9</Color>
      <Description>sample string 5</Description>
      <Make>sample string 7</Make>
      <Model>sample string 8</Model>
      <PersonId>66d0c9ac-9407-4887-be22-45ec16f79435</PersonId>
      <PlateNumber>sample string 10</PlateNumber>
      <Year>sample string 6</Year>
      <sRegionId>ff490dde-fa95-4675-b6c2-8c5860726f43</sRegionId>
      <sVehicleTypeId>b8f85668-bb09-4046-809e-64c86ad23df1</sVehicleTypeId>
      <PersonVehicleId>e401c0b0-b866-4464-a554-77321d9c20fc</PersonVehicleId>
      <VehicleId>9a46fe14-8025-4120-8d1c-89d3a2237874</VehicleId>
    </PersonUpdateVehicleViewModel>
    <PersonUpdateVehicleViewModel>
      <Color>sample string 9</Color>
      <Description>sample string 5</Description>
      <Make>sample string 7</Make>
      <Model>sample string 8</Model>
      <PersonId>66d0c9ac-9407-4887-be22-45ec16f79435</PersonId>
      <PlateNumber>sample string 10</PlateNumber>
      <Year>sample string 6</Year>
      <sRegionId>ff490dde-fa95-4675-b6c2-8c5860726f43</sRegionId>
      <sVehicleTypeId>b8f85668-bb09-4046-809e-64c86ad23df1</sVehicleTypeId>
      <PersonVehicleId>e401c0b0-b866-4464-a554-77321d9c20fc</PersonVehicleId>
      <VehicleId>9a46fe14-8025-4120-8d1c-89d3a2237874</VehicleId>
    </PersonUpdateVehicleViewModel>
  </Vehicles>
</PersonAndVehiclesViewModel>