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": "ced99100-d59c-4410-a663-fc05d5a6b889", "Vehicles": [ { "VehicleId": "606c4aa1-3e31-4414-9bf5-f7e64aff71f0", "PersonVehicleId": "96aacb5a-f278-4bd7-90af-3f96542ec387", "PersonId": "bc2c26ac-a2d7-4551-ac9e-976059358794", "sRegionId": "5b6e1c4b-bf9f-4048-85cf-0db3e420653d", "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": "d22c220d-16b6-4947-bcf6-6de5544e36eb" }, { "VehicleId": "606c4aa1-3e31-4414-9bf5-f7e64aff71f0", "PersonVehicleId": "96aacb5a-f278-4bd7-90af-3f96542ec387", "PersonId": "bc2c26ac-a2d7-4551-ac9e-976059358794", "sRegionId": "5b6e1c4b-bf9f-4048-85cf-0db3e420653d", "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": "d22c220d-16b6-4947-bcf6-6de5544e36eb" } ] }
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>ced99100-d59c-4410-a663-fc05d5a6b889</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>bc2c26ac-a2d7-4551-ac9e-976059358794</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>5b6e1c4b-bf9f-4048-85cf-0db3e420653d</sRegionId> <sVehicleTypeId>d22c220d-16b6-4947-bcf6-6de5544e36eb</sVehicleTypeId> <PersonVehicleId>96aacb5a-f278-4bd7-90af-3f96542ec387</PersonVehicleId> <VehicleId>606c4aa1-3e31-4414-9bf5-f7e64aff71f0</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>bc2c26ac-a2d7-4551-ac9e-976059358794</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>5b6e1c4b-bf9f-4048-85cf-0db3e420653d</sRegionId> <sVehicleTypeId>d22c220d-16b6-4947-bcf6-6de5544e36eb</sVehicleTypeId> <PersonVehicleId>96aacb5a-f278-4bd7-90af-3f96542ec387</PersonVehicleId> <VehicleId>606c4aa1-3e31-4414-9bf5-f7e64aff71f0</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>