POST api/vehicletrip/start

Request Information

URI Parameters

None.

Body Parameters

StartVehicleTripRequestModel
NameDescriptionTypeAdditional information
BranchID

integer

None.

FinancialYearID

integer

None.

VehicleID

integer

None.

DriverID

integer

None.

UserID

integer

None.

StartingKilometers

decimal number

None.

StartPhotoImage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BranchID": 1,
  "FinancialYearID": 2,
  "VehicleID": 3,
  "DriverID": 4,
  "UserID": 5,
  "StartingKilometers": 6.0,
  "StartPhotoImage": "sample string 7"
}

application/xml, text/xml

Sample:
<StartVehicleTripRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <BranchID>1</BranchID>
  <DriverID>4</DriverID>
  <FinancialYearID>2</FinancialYearID>
  <StartPhotoImage>sample string 7</StartPhotoImage>
  <StartingKilometers>6</StartingKilometers>
  <UserID>5</UserID>
  <VehicleID>3</VehicleID>
</StartVehicleTripRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StartVehicleTripRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.