GET api/vehicle/GetVehicle

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Vehicle
NameDescriptionTypeAdditional information
VehicleId

integer

None.

Name

string

None.

PracticeId

integer

None.

Registration

string

None.

Type

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VehicleId": 1,
    "Name": "sample string 2",
    "PracticeId": 1,
    "Registration": "sample string 3",
    "Type": "sample string 4"
  },
  {
    "VehicleId": 1,
    "Name": "sample string 2",
    "PracticeId": 1,
    "Registration": "sample string 3",
    "Type": "sample string 4"
  }
]

text/html

Sample:
[{"VehicleId":1,"Name":"sample string 2","PracticeId":1,"Registration":"sample string 3","Type":"sample string 4"},{"VehicleId":1,"Name":"sample string 2","PracticeId":1,"Registration":"sample string 3","Type":"sample string 4"}]

application/xml, text/xml

Sample:
<ArrayOfVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <Vehicle>
    <Name>sample string 2</Name>
    <PracticeId>1</PracticeId>
    <Registration>sample string 3</Registration>
    <Type>sample string 4</Type>
    <VehicleId>1</VehicleId>
  </Vehicle>
  <Vehicle>
    <Name>sample string 2</Name>
    <PracticeId>1</PracticeId>
    <Registration>sample string 3</Registration>
    <Type>sample string 4</Type>
    <VehicleId>1</VehicleId>
  </Vehicle>
</ArrayOfVehicle>