GET api/MetroMobile/GetActivities

Etkinlik Listesi

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Activity
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Content

string

None.

Photo

string

None.

StartDate

date

None.

Language

string

None.

Media

MediaContent

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Title": "sample string 2",
    "Content": "sample string 3",
    "Photo": "sample string 4",
    "StartDate": "2021-10-27T12:17:04.8424813+03:00",
    "Language": "sample string 6",
    "Media": {
      "Video": "sample string 1",
      "Images": [
        "sample string 1",
        "sample string 2"
      ]
    }
  },
  {
    "Id": 1,
    "Title": "sample string 2",
    "Content": "sample string 3",
    "Photo": "sample string 4",
    "StartDate": "2021-10-27T12:17:04.8424813+03:00",
    "Language": "sample string 6",
    "Media": {
      "Video": "sample string 1",
      "Images": [
        "sample string 1",
        "sample string 2"
      ]
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfActivity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Activity>
    <Content>sample string 3</Content>
    <Id>1</Id>
    <Language>sample string 6</Language>
    <Media>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Images>
      <Video>sample string 1</Video>
    </Media>
    <Photo>sample string 4</Photo>
    <StartDate>2021-10-27T12:17:04.8424813+03:00</StartDate>
    <Title>sample string 2</Title>
  </Activity>
  <Activity>
    <Content>sample string 3</Content>
    <Id>1</Id>
    <Language>sample string 6</Language>
    <Media>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Images>
      <Video>sample string 1</Video>
    </Media>
    <Photo>sample string 4</Photo>
    <StartDate>2021-10-27T12:17:04.8424813+03:00</StartDate>
    <Title>sample string 2</Title>
  </Activity>
</ArrayOfActivity>