POST api/Administrator/AddBus

Request Information

URI Parameters

None.

Body Parameters

BusModel
NameDescriptionTypeAdditional information
ID

integer

None.

BusNo

string

None.

BusRegisNo

string

None.

SeatingCapacity

integer

None.

PurchaseDate

date

None.

CompanyName

string

None.

EngineNo

string

None.

IsSelected

boolean

None.

CreateDate

date

None.

BusStatus

boolean

None.

Status

integer

None.

Message

string

None.

Domain

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "BusNo": "sample string 2",
  "BusRegisNo": "sample string 3",
  "SeatingCapacity": 1,
  "PurchaseDate": "2021-05-14T22:14:30.4893703-07:00",
  "CompanyName": "sample string 4",
  "EngineNo": "sample string 5",
  "IsSelected": true,
  "CreateDate": "2021-05-14T22:14:30.4893703-07:00",
  "BusStatus": true,
  "Status": 7,
  "Message": "sample string 8",
  "Domain": "sample string 9"
}

application/xml, text/xml

Sample:
<BusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.MasterModels">
  <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 9</Domain>
  <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 8</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">7</Status>
  <BusNo>sample string 2</BusNo>
  <BusRegisNo>sample string 3</BusRegisNo>
  <BusStatus>true</BusStatus>
  <CompanyName>sample string 4</CompanyName>
  <CreateDate>2021-05-14T22:14:30.4893703-07:00</CreateDate>
  <EngineNo>sample string 5</EngineNo>
  <ID>1</ID>
  <IsSelected>true</IsSelected>
  <PurchaseDate>2021-05-14T22:14:30.4893703-07:00</PurchaseDate>
  <SeatingCapacity>1</SeatingCapacity>
</BusModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.