POST api/MetroMobile/V2/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:55:52.9178656+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:55:52.9178656+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

ResultOfTimeTable
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of TimeTable

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "Id": 1,
    "Title": "sample string 2",
    "Message": "sample string 3",
    "Trace": "sample string 4",
    "HelpLink": "sample string 5",
    "Source": "sample string 6"
  },
  "Data": [
    {
      "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"
        ]
      }
    },
    {
      "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:
<ResultOfTimeTableuns9C1Um xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data>
    <TimeTable>
      <BoardingStationId>1</BoardingStationId>
      <BoardingStationName>sample string 2</BoardingStationName>
      <FirstStation>sample string 6</FirstStation>
      <FirstStationId>5</FirstStationId>
      <LanguageText xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1: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:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Times>
      </TimeInfos>
    </TimeTable>
    <TimeTable>
      <BoardingStationId>1</BoardingStationId>
      <BoardingStationName>sample string 2</BoardingStationName>
      <FirstStation>sample string 6</FirstStation>
      <FirstStationId>5</FirstStationId>
      <LanguageText xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1: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:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Times>
      </TimeInfos>
    </TimeTable>
  </Data>
  <Error>
    <HelpLink>sample string 5</HelpLink>
    <Id>1</Id>
    <Message>sample string 3</Message>
    <Source>sample string 6</Source>
    <Title>sample string 2</Title>
    <Trace>sample string 4</Trace>
  </Error>
  <Success>true</Success>
</ResultOfTimeTableuns9C1Um>