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": "aac5065b-4a41-4719-b9bf-b7514a3d2588", "Vehicles": [ { "VehicleId": "264dacb3-9e79-4d1e-a80b-343fb4e72b56", "PersonVehicleId": "fbb32fd9-6396-47ac-8373-d1f6a6379a46", "PersonId": "388de64d-2600-44eb-9d48-4b8ee9c46475", "sRegionId": "e74add23-f564-43fc-9df9-5c158be5735a", "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": "ad34431b-520d-4017-b921-51cd74b4c3de" }, { "VehicleId": "264dacb3-9e79-4d1e-a80b-343fb4e72b56", "PersonVehicleId": "fbb32fd9-6396-47ac-8373-d1f6a6379a46", "PersonId": "388de64d-2600-44eb-9d48-4b8ee9c46475", "sRegionId": "e74add23-f564-43fc-9df9-5c158be5735a", "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": "ad34431b-520d-4017-b921-51cd74b4c3de" } ] }
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>aac5065b-4a41-4719-b9bf-b7514a3d2588</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>388de64d-2600-44eb-9d48-4b8ee9c46475</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>e74add23-f564-43fc-9df9-5c158be5735a</sRegionId> <sVehicleTypeId>ad34431b-520d-4017-b921-51cd74b4c3de</sVehicleTypeId> <PersonVehicleId>fbb32fd9-6396-47ac-8373-d1f6a6379a46</PersonVehicleId> <VehicleId>264dacb3-9e79-4d1e-a80b-343fb4e72b56</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>388de64d-2600-44eb-9d48-4b8ee9c46475</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>e74add23-f564-43fc-9df9-5c158be5735a</sRegionId> <sVehicleTypeId>ad34431b-520d-4017-b921-51cd74b4c3de</sVehicleTypeId> <PersonVehicleId>fbb32fd9-6396-47ac-8373-d1f6a6379a46</PersonVehicleId> <VehicleId>264dacb3-9e79-4d1e-a80b-343fb4e72b56</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>