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": "9512dd2d-4539-401a-a8cb-58b69600f17d", "Vehicles": [ { "VehicleId": "505a4a57-4071-4836-9a4a-7e9dd0256c46", "PersonVehicleId": "677ee439-0e45-41ed-8cb9-db77e04b704e", "PersonId": "4e4c9c28-ff41-43d1-8d9f-66dbae7d76a6", "sRegionId": "a68ed81d-bae6-4c35-a4d5-ed327a085904", "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": "37c66f7d-b020-469c-8c08-5fa0ad8813f0" }, { "VehicleId": "505a4a57-4071-4836-9a4a-7e9dd0256c46", "PersonVehicleId": "677ee439-0e45-41ed-8cb9-db77e04b704e", "PersonId": "4e4c9c28-ff41-43d1-8d9f-66dbae7d76a6", "sRegionId": "a68ed81d-bae6-4c35-a4d5-ed327a085904", "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": "37c66f7d-b020-469c-8c08-5fa0ad8813f0" } ] }
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>9512dd2d-4539-401a-a8cb-58b69600f17d</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>4e4c9c28-ff41-43d1-8d9f-66dbae7d76a6</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a68ed81d-bae6-4c35-a4d5-ed327a085904</sRegionId> <sVehicleTypeId>37c66f7d-b020-469c-8c08-5fa0ad8813f0</sVehicleTypeId> <PersonVehicleId>677ee439-0e45-41ed-8cb9-db77e04b704e</PersonVehicleId> <VehicleId>505a4a57-4071-4836-9a4a-7e9dd0256c46</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>4e4c9c28-ff41-43d1-8d9f-66dbae7d76a6</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>a68ed81d-bae6-4c35-a4d5-ed327a085904</sRegionId> <sVehicleTypeId>37c66f7d-b020-469c-8c08-5fa0ad8813f0</sVehicleTypeId> <PersonVehicleId>677ee439-0e45-41ed-8cb9-db77e04b704e</PersonVehicleId> <VehicleId>505a4a57-4071-4836-9a4a-7e9dd0256c46</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>