POST api/MetroMobile/V2/Subscribe

Abonelik İşlemleri

Request Information

URI Parameters

None.

Body Parameters

Collection of SubscribeRequest
NameDescriptionTypeAdditional information
Name

string

None.

Surname

string

None.

Email

string

None.

Phone

Örn: 53XXXXXXXX

string

None.

FailureTypes

(1:Arıza, 3:Haber, 4:Duyuru, 5:Etkinlik) Virgülle Ayrılmış Şekilde Liste Tutar

string

None.

Lines

Virgülle Ayrılmış Şekilde Liste Tutar

string

None.

Stations

Virgülle Ayrılmış Şekilde Liste Tutar

string

None.

Days

(1:Pazartesi, 2:Salı, 3:Çarşamba, 4:Perşembe, 5:Cuma, 6:Cumartesi, 7:Pazar) Virgülle Ayrılmış Şekilde Liste Tutar Tümü için boş bırakılır

string

None.

Clocks

(00,01,02...23) Virgülle Ayrılmış Şekilde Liste Tutar

string

None.

Contacts

E-posta,SMS şeklinde girilir Virgülle Ayrılmış Şekilde Liste Tutar

string

None.

MobilePushId

string

None.

FailureIsClosed

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Surname": "sample string 2",
    "Email": "sample string 3",
    "Phone": "sample string 4",
    "FailureTypes": "sample string 5",
    "Lines": "sample string 6",
    "Stations": "sample string 7",
    "Days": "sample string 8",
    "Clocks": "sample string 9",
    "Contacts": "sample string 10",
    "MobilePushId": "sample string 11",
    "FailureIsClosed": true
  },
  {
    "Name": "sample string 1",
    "Surname": "sample string 2",
    "Email": "sample string 3",
    "Phone": "sample string 4",
    "FailureTypes": "sample string 5",
    "Lines": "sample string 6",
    "Stations": "sample string 7",
    "Days": "sample string 8",
    "Clocks": "sample string 9",
    "Contacts": "sample string 10",
    "MobilePushId": "sample string 11",
    "FailureIsClosed": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSubscribeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <SubscribeRequest>
    <Clocks>sample string 9</Clocks>
    <Contacts>sample string 10</Contacts>
    <Days>sample string 8</Days>
    <Email>sample string 3</Email>
    <FailureIsClosed>true</FailureIsClosed>
    <FailureTypes>sample string 5</FailureTypes>
    <Lines>sample string 6</Lines>
    <MobilePushId>sample string 11</MobilePushId>
    <Name>sample string 1</Name>
    <Phone>sample string 4</Phone>
    <Stations>sample string 7</Stations>
    <Surname>sample string 2</Surname>
  </SubscribeRequest>
  <SubscribeRequest>
    <Clocks>sample string 9</Clocks>
    <Contacts>sample string 10</Contacts>
    <Days>sample string 8</Days>
    <Email>sample string 3</Email>
    <FailureIsClosed>true</FailureIsClosed>
    <FailureTypes>sample string 5</FailureTypes>
    <Lines>sample string 6</Lines>
    <MobilePushId>sample string 11</MobilePushId>
    <Name>sample string 1</Name>
    <Phone>sample string 4</Phone>
    <Stations>sample string 7</Stations>
    <Surname>sample string 2</Surname>
  </SubscribeRequest>
</ArrayOfSubscribeRequest>

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 'List`1'.

Response Information

Resource Description

ResultOfSubscribeResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of SubscribeResponse

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": [
    {
      "StatusId": 1,
      "Message": "sample string 2"
    },
    {
      "StatusId": 1,
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ResultOfSubscribeResponseuns9C1Um xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data>
    <SubscribeResponse>
      <Message>sample string 2</Message>
      <StatusId>1</StatusId>
    </SubscribeResponse>
    <SubscribeResponse>
      <Message>sample string 2</Message>
      <StatusId>1</StatusId>
    </SubscribeResponse>
  </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>
</ResultOfSubscribeResponseuns9C1Um>