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
PersonAndVehiclesViewModelName | 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": "7050687e-ffef-4921-8ca5-6558553c10fc", "Vehicles": [ { "VehicleId": "a86d9bf8-d1a0-4ea3-9ca9-9d64e082cc34", "PersonVehicleId": "a882c02b-e22a-4227-9f24-b6bb95423d1b", "PersonId": "f4a555d4-7816-4b5e-a095-efe4a850b83c", "sRegionId": "a30f1f3e-6338-4921-bc2e-f0ad26a10c46", "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": "91db541d-a64a-45fd-bc07-ec22351ac971" }, { "VehicleId": "a86d9bf8-d1a0-4ea3-9ca9-9d64e082cc34", "PersonVehicleId": "a882c02b-e22a-4227-9f24-b6bb95423d1b", "PersonId": "f4a555d4-7816-4b5e-a095-efe4a850b83c", "sRegionId": "a30f1f3e-6338-4921-bc2e-f0ad26a10c46", "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": "91db541d-a64a-45fd-bc07-ec22351ac971" } ] }
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>7050687e-ffef-4921-8ca5-6558553c10fc</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>f4a555d4-7816-4b5e-a095-efe4a850b83c</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a30f1f3e-6338-4921-bc2e-f0ad26a10c46</sRegionId> <sVehicleTypeId>91db541d-a64a-45fd-bc07-ec22351ac971</sVehicleTypeId> <PersonVehicleId>a882c02b-e22a-4227-9f24-b6bb95423d1b</PersonVehicleId> <VehicleId>a86d9bf8-d1a0-4ea3-9ca9-9d64e082cc34</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>f4a555d4-7816-4b5e-a095-efe4a850b83c</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a30f1f3e-6338-4921-bc2e-f0ad26a10c46</sRegionId> <sVehicleTypeId>91db541d-a64a-45fd-bc07-ec22351ac971</sVehicleTypeId> <PersonVehicleId>a882c02b-e22a-4227-9f24-b6bb95423d1b</PersonVehicleId> <VehicleId>a86d9bf8-d1a0-4ea3-9ca9-9d64e082cc34</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>