POST api/driver/insert

Request Information

URI Parameters

None.

Body Parameters

InsertDriverRequestModel
NameDescriptionTypeAdditional information
DriverID

integer

None.

DriverName

string

None.

Phone

string

None.

Address

string

None.

UserID

integer

None.

FinancialYearID

integer

None.

BranchID

integer

None.

EligibleForPoints

boolean

None.

AccGroupID

integer

None.

CreateLogin

boolean

None.

Password

string

None.

UserTypeCode

string

None.

Image

string

None.

CounterID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverID": 1,
  "DriverName": "sample string 2",
  "Phone": "sample string 3",
  "Address": "sample string 4",
  "UserID": 5,
  "FinancialYearID": 6,
  "BranchID": 7,
  "EligibleForPoints": true,
  "AccGroupID": 9,
  "CreateLogin": true,
  "Password": "sample string 11",
  "UserTypeCode": "sample string 12",
  "Image": "sample string 13",
  "CounterID": 14
}

application/xml, text/xml

Sample:
<InsertDriverRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <AccGroupID>9</AccGroupID>
  <Address>sample string 4</Address>
  <BranchID>7</BranchID>
  <CounterID>14</CounterID>
  <CreateLogin>true</CreateLogin>
  <DriverID>1</DriverID>
  <DriverName>sample string 2</DriverName>
  <EligibleForPoints>true</EligibleForPoints>
  <FinancialYearID>6</FinancialYearID>
  <Image>sample string 13</Image>
  <Password>sample string 11</Password>
  <Phone>sample string 3</Phone>
  <UserID>5</UserID>
  <UserTypeCode>sample string 12</UserTypeCode>
</InsertDriverRequestModel>

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 'InsertDriverRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.