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": "6aba42b8-6ba1-434f-a212-02b788fb2136", "Vehicles": [ { "VehicleId": "02940a28-baab-4810-ab87-9b0a621125b7", "PersonVehicleId": "e1e4664e-cd17-49c1-8fba-554e69a8f2a3", "PersonId": "febb2ea1-abb7-40e1-bd02-c6bb819f5d89", "sRegionId": "f4fb35a5-d924-43ce-870f-441c2ff759ff", "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": "13979146-d07f-4f4f-927c-b598015ffdec" }, { "VehicleId": "02940a28-baab-4810-ab87-9b0a621125b7", "PersonVehicleId": "e1e4664e-cd17-49c1-8fba-554e69a8f2a3", "PersonId": "febb2ea1-abb7-40e1-bd02-c6bb819f5d89", "sRegionId": "f4fb35a5-d924-43ce-870f-441c2ff759ff", "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": "13979146-d07f-4f4f-927c-b598015ffdec" } ] }
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>6aba42b8-6ba1-434f-a212-02b788fb2136</PersonId> <Vehicles> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>febb2ea1-abb7-40e1-bd02-c6bb819f5d89</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>f4fb35a5-d924-43ce-870f-441c2ff759ff</sRegionId> <sVehicleTypeId>13979146-d07f-4f4f-927c-b598015ffdec</sVehicleTypeId> <PersonVehicleId>e1e4664e-cd17-49c1-8fba-554e69a8f2a3</PersonVehicleId> <VehicleId>02940a28-baab-4810-ab87-9b0a621125b7</VehicleId> </PersonUpdateVehicleViewModel> <PersonUpdateVehicleViewModel> <Color>sample string 9</Color> <Description>sample string 5</Description> <Make>sample string 7</Make> <Model>sample string 8</Model> <PersonId>febb2ea1-abb7-40e1-bd02-c6bb819f5d89</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>f4fb35a5-d924-43ce-870f-441c2ff759ff</sRegionId> <sVehicleTypeId>13979146-d07f-4f4f-927c-b598015ffdec</sVehicleTypeId> <PersonVehicleId>e1e4664e-cd17-49c1-8fba-554e69a8f2a3</PersonVehicleId> <VehicleId>02940a28-baab-4810-ab87-9b0a621125b7</VehicleId> </PersonUpdateVehicleViewModel> </Vehicles> </PersonAndVehiclesViewModel>