POST api/school/transport/routes/save

Request Information

URI Parameters

None.

Body Parameters

TransportRouteDto
NameDescriptionTypeAdditional information
id

integer

None.

School_Id

integer

None.

busWay

string

None.

driverId

integer

None.

conductorId

integer

None.

busId

integer

None.

fromDate

string

None.

toDate

string

None.

stops

Collection of TransportRouteStopDto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "School_Id": 1,
  "busWay": "sample string 2",
  "driverId": 3,
  "conductorId": 4,
  "busId": 5,
  "fromDate": "sample string 6",
  "toDate": "sample string 7",
  "stops": [
    {
      "childId": 1,
      "stopId": 1,
      "busTime": "sample string 2",
      "routeNumber": 3
    },
    {
      "childId": 1,
      "stopId": 1,
      "busTime": "sample string 2",
      "routeNumber": 3
    }
  ]
}

application/xml, text/xml

Sample:
<TransportRouteDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoapToRestAPI.Controllers">
  <School_Id>1</School_Id>
  <busId>5</busId>
  <busWay>sample string 2</busWay>
  <conductorId>4</conductorId>
  <driverId>3</driverId>
  <fromDate>sample string 6</fromDate>
  <id>1</id>
  <stops>
    <TransportRouteStopDto>
      <busTime>sample string 2</busTime>
      <childId>1</childId>
      <routeNumber>3</routeNumber>
      <stopId>1</stopId>
    </TransportRouteStopDto>
    <TransportRouteStopDto>
      <busTime>sample string 2</busTime>
      <childId>1</childId>
      <routeNumber>3</routeNumber>
      <stopId>1</stopId>
    </TransportRouteStopDto>
  </stops>
  <toDate>sample string 7</toDate>
</TransportRouteDto>

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.