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": "be7e2342-76d0-4888-84d1-04c879d333e2", "Vehicles": [ { "VehicleId": "cc9beb10-0ebe-49cb-b1c0-10759c50e0aa", "PersonVehicleId": "634e24be-9419-4e24-8294-34c14ffac038", "PersonId": "b58b09cb-66d1-414f-97fa-eb841de01222", "sRegionId": "aee5425c-3943-49c8-82fc-0f9398d9864c", "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": "ea9240f6-0e82-4353-b871-6b9b26e9f98c" }, { "VehicleId": "cc9beb10-0ebe-49cb-b1c0-10759c50e0aa", "PersonVehicleId": "634e24be-9419-4e24-8294-34c14ffac038", "PersonId": "b58b09cb-66d1-414f-97fa-eb841de01222", "sRegionId": "aee5425c-3943-49c8-82fc-0f9398d9864c", "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": "ea9240f6-0e82-4353-b871-6b9b26e9f98c" } ] }
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>be7e2342-76d0-4888-84d1-04c879d333e2</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>b58b09cb-66d1-414f-97fa-eb841de01222</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>aee5425c-3943-49c8-82fc-0f9398d9864c</sRegionId> <sVehicleTypeId>ea9240f6-0e82-4353-b871-6b9b26e9f98c</sVehicleTypeId> <PersonVehicleId>634e24be-9419-4e24-8294-34c14ffac038</PersonVehicleId> <VehicleId>cc9beb10-0ebe-49cb-b1c0-10759c50e0aa</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>b58b09cb-66d1-414f-97fa-eb841de01222</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>aee5425c-3943-49c8-82fc-0f9398d9864c</sRegionId> <sVehicleTypeId>ea9240f6-0e82-4353-b871-6b9b26e9f98c</sVehicleTypeId> <PersonVehicleId>634e24be-9419-4e24-8294-34c14ffac038</PersonVehicleId> <VehicleId>cc9beb10-0ebe-49cb-b1c0-10759c50e0aa</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>