POST api/MetroMobile/GetTimeTable

Sefer Tarifeleri Listesi

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:30:07.5578026+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:30:07.5578026+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

TimeTable
NameDescriptionTypeAdditional information
BoardingStationId

integer

None.

BoardingStationName

string

None.

LineId

integer

None.

LineName

string

None.

FirstStationId

integer

None.

FirstStation

string

None.

LastStationId

integer

None.

LastStation

string

None.

LanguageText

Dictionary of string [key] and string [value]

None.

TimeInfos

TimeInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "BoardingStationId": 1,
  "BoardingStationName": "sample string 2",
  "LineId": 3,
  "LineName": "sample string 4",
  "FirstStationId": 5,
  "FirstStation": "sample string 6",
  "LastStationId": 7,
  "LastStation": "sample string 8",
  "LanguageText": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "TimeInfos": {
    "Day": 1,
    "DayName": "sample string 2",
    "Times": [
      "sample string 1",
      "sample string 2"
    ]
  }
}

application/xml, text/xml

Sample:
<TimeTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <BoardingStationId>1</BoardingStationId>
  <BoardingStationName>sample string 2</BoardingStationName>
  <FirstStation>sample string 6</FirstStation>
  <FirstStationId>5</FirstStationId>
  <LanguageText xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </LanguageText>
  <LastStation>sample string 8</LastStation>
  <LastStationId>7</LastStationId>
  <LineId>3</LineId>
  <LineName>sample string 4</LineName>
  <TimeInfos>
    <Day>1</Day>
    <DayName>sample string 2</DayName>
    <Times xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Times>
  </TimeInfos>
</TimeTable>