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": "908c3113-b448-4f06-8c87-944168384e54", "Vehicles": [ { "VehicleId": "dc49bd87-38ba-4e53-b5f0-27a7723b4f35", "PersonVehicleId": "ba1e2272-dcb6-4c23-9bd7-244a30f48bbb", "PersonId": "21e900b5-cdd2-4da5-b317-bc4d71d7af3c", "sRegionId": "a64fb9fd-87b9-4a1d-b20d-6f01defcfcd9", "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": "c055f4cc-1b92-49e4-91b9-484b098f01a8" }, { "VehicleId": "dc49bd87-38ba-4e53-b5f0-27a7723b4f35", "PersonVehicleId": "ba1e2272-dcb6-4c23-9bd7-244a30f48bbb", "PersonId": "21e900b5-cdd2-4da5-b317-bc4d71d7af3c", "sRegionId": "a64fb9fd-87b9-4a1d-b20d-6f01defcfcd9", "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": "c055f4cc-1b92-49e4-91b9-484b098f01a8" } ] }
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>908c3113-b448-4f06-8c87-944168384e54</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>21e900b5-cdd2-4da5-b317-bc4d71d7af3c</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a64fb9fd-87b9-4a1d-b20d-6f01defcfcd9</sRegionId> <sVehicleTypeId>c055f4cc-1b92-49e4-91b9-484b098f01a8</sVehicleTypeId> <PersonVehicleId>ba1e2272-dcb6-4c23-9bd7-244a30f48bbb</PersonVehicleId> <VehicleId>dc49bd87-38ba-4e53-b5f0-27a7723b4f35</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>21e900b5-cdd2-4da5-b317-bc4d71d7af3c</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a64fb9fd-87b9-4a1d-b20d-6f01defcfcd9</sRegionId> <sVehicleTypeId>c055f4cc-1b92-49e4-91b9-484b098f01a8</sVehicleTypeId> <PersonVehicleId>ba1e2272-dcb6-4c23-9bd7-244a30f48bbb</PersonVehicleId> <VehicleId>dc49bd87-38ba-4e53-b5f0-27a7723b4f35</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>