POST api/GetVehicleById

Request Information

URI Parameters

None.

Body Parameters

GetVehicleById
NameDescriptionTypeAdditional information
VehicleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleId": 1
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetVehicleByIdResponse
NameDescriptionTypeAdditional information
VehicleById

VehicleDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "VehicleById": {
    "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:
<GetVehicleByIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models">
  <VehicleById>
    <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>
  </VehicleById>
</GetVehicleByIdResponse>