POST api/GetVehicle

Request Information

URI Parameters

None.

Body Parameters

GetVehicle
NameDescriptionTypeAdditional information
AccountId

integer

None.

VehicleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "VehicleId": 2
}

application/xml, text/xml

Sample:
<GetVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models">
  <AccountId>1</AccountId>
  <VehicleId>2</VehicleId>
</GetVehicle>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetVehicleResponse
NameDescriptionTypeAdditional information
Vehicle

VehicleDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "Vehicle": {
    "VehicleId": 1,
    "VehicleName": "sample string 2",
    "Brand": "sample string 3",
    "Model": "sample string 4",
    "ModelYear": 1,
    "CertificateNumber": "sample string 5",
    "RideTypeId": 1,
    "AccountId": 1,
    "VehicleColor": "sample string 6",
    "IsEnable": true,
    "CreateDateTime": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<GetVehicleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models">
  <Vehicle>
    <AccountId>1</AccountId>
    <Brand>sample string 3</Brand>
    <CertificateNumber>sample string 5</CertificateNumber>
    <CreateDateTime>sample string 7</CreateDateTime>
    <IsEnable>true</IsEnable>
    <Model>sample string 4</Model>
    <ModelYear>1</ModelYear>
    <RideTypeId>1</RideTypeId>
    <VehicleColor>sample string 6</VehicleColor>
    <VehicleId>1</VehicleId>
    <VehicleName>sample string 2</VehicleName>
  </Vehicle>
</GetVehicleResponse>