POST api/MetroMobile/GetStationBetweenTime

İstasyonların Başlangıç İstasyonuna Olan Uzaklık Sürelerini Listeler(Örn: 3 dk)

Request Information

URI Parameters

None.

Body Parameters

TimeTableRequest
NameDescriptionTypeAdditional information
BoardingStationId

integer

Required

DirectionId

integer

Required

DateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BoardingStationId": 1,
  "DirectionId": 2,
  "DateTime": "2021-10-27T13:15:18.9883317+03:00"
}

application/xml, text/xml

Sample:
<TimeTableRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <BoardingStationId>1</BoardingStationId>
  <DateTime>2021-10-27T13:15:18.9883317+03:00</DateTime>
  <DirectionId>2</DirectionId>
</TimeTableRequest>

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

Response Information

Resource Description

DirectionStation
NameDescriptionTypeAdditional information
DirectionId

integer

None.

DirectionName

string

None.

LineId

integer

None.

LineName

string

None.

StationOrder

Collection of StationOrder

None.

Response Formats

application/json, text/json

Sample:
{
  "DirectionId": 1,
  "DirectionName": "sample string 2",
  "LineId": 3,
  "LineName": "sample string 4",
  "StationOrder": [
    {
      "Id": 1,
      "StationName": "sample string 2",
      "Order": 3,
      "Time": 4
    },
    {
      "Id": 1,
      "StationName": "sample string 2",
      "Order": 3,
      "Time": 4
    }
  ]
}

application/xml, text/xml

Sample:
<DirectionStation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <DirectionId>1</DirectionId>
  <DirectionName>sample string 2</DirectionName>
  <LineId>3</LineId>
  <LineName>sample string 4</LineName>
  <StationOrder>
    <StationOrder>
      <Id>1</Id>
      <Order>3</Order>
      <StationName>sample string 2</StationName>
      <Time>4</Time>
    </StationOrder>
    <StationOrder>
      <Id>1</Id>
      <Order>3</Order>
      <StationName>sample string 2</StationName>
      <Time>4</Time>
    </StationOrder>
  </StationOrder>
</DirectionStation>