POST api/MetroMobile/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

Collection of sp_GetDirectionByLineIdAndStationId_Result
NameDescriptionTypeAdditional information
LineId

integer

None.

LineName

string

None.

DirectionId

integer

None.

DirectionName

string

None.

DirectionValue

integer

None.

Response Formats

application/json, text/json

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