POST api/MetroMobile/V2/GetDirectionsByLineIdAndStationId

Hat Id'si ve ─░stayon Id'sine Göre Yön Bilgisi Listesi

Request Information

URI Parameters

None.

Body Parameters

DirectionRequest
NameDescriptionTypeAdditional information
LineId

integer

None.

StationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LineId": 1,
  "StationId": 2
}

application/xml, text/xml

Sample:
<DirectionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <LineId>1</LineId>
  <StationId>2</StationId>
</DirectionRequest>

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

Response Information

Resource Description

ResultOfsp_GetDirectionByLineIdAndStationId_Result
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of sp_GetDirectionByLineIdAndStationId_Result

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": [
    {
      "LineId": 1,
      "LineName": "sample string 2",
      "DirectionId": 3,
      "DirectionName": "sample string 4",
      "DirectionValue": 5
    },
    {
      "LineId": 1,
      "LineName": "sample string 2",
      "DirectionId": 3,
      "DirectionName": "sample string 4",
      "DirectionValue": 5
    }
  ]
}

application/xml, text/xml

Sample:
<ResultOfsp_GetDirectionByLineIdAndStationId_ResultY8rMBUxq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.EF">
    <d2p1:sp_GetDirectionByLineIdAndStationId_Result>
      <d2p1:DirectionId>3</d2p1:DirectionId>
      <d2p1:DirectionName>sample string 4</d2p1:DirectionName>
      <d2p1:DirectionValue>5</d2p1:DirectionValue>
      <d2p1:LineId>1</d2p1:LineId>
      <d2p1:LineName>sample string 2</d2p1:LineName>
    </d2p1:sp_GetDirectionByLineIdAndStationId_Result>
    <d2p1:sp_GetDirectionByLineIdAndStationId_Result>
      <d2p1:DirectionId>3</d2p1:DirectionId>
      <d2p1:DirectionName>sample string 4</d2p1:DirectionName>
      <d2p1:DirectionValue>5</d2p1:DirectionValue>
      <d2p1:LineId>1</d2p1:LineId>
      <d2p1:LineName>sample string 2</d2p1:LineName>
    </d2p1:sp_GetDirectionByLineIdAndStationId_Result>
  </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>
</ResultOfsp_GetDirectionByLineIdAndStationId_ResultY8rMBUxq>