GET api/Newsletter/Content

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TopicContent
NameTypeAdditional informationDescription
Id integer

None.

Content string

None.

ImageId integer

None.

TopicContentType TopicContentType

None.

NewsTopicId integer

None.

NewsTopic NewsTopic

None.

Image File

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Content": "sample string 2",
    "ImageId": 1,
    "TopicContentType": 1,
    "NewsTopicId": 3,
    "NewsTopic": {
      "Id": 1,
      "Title": "sample string 2",
      "NewsId": 3,
      "News": {
        "Id": 1,
        "Name": "sample string 2",
        "Date": "2025-01-09T08:54:20.6023753+01:00",
        "Footer": "sample string 4",
        "Header": "sample string 5",
        "MailFooter": "sample string 6",
        "MailHeader": "sample string 7",
        "Important": true
      }
    },
    "Image": {
      "Id": 1,
      "UserID": 2,
      "filesize": 3,
      "filetype": "sample string 4",
      "filename": "sample string 5",
      "original_filename": "sample string 6"
    }
  },
  {
    "Id": 1,
    "Content": "sample string 2",
    "ImageId": 1,
    "TopicContentType": 1,
    "NewsTopicId": 3,
    "NewsTopic": {
      "Id": 1,
      "Title": "sample string 2",
      "NewsId": 3,
      "News": {
        "Id": 1,
        "Name": "sample string 2",
        "Date": "2025-01-09T08:54:20.6023753+01:00",
        "Footer": "sample string 4",
        "Header": "sample string 5",
        "MailFooter": "sample string 6",
        "MailHeader": "sample string 7",
        "Important": true
      }
    },
    "Image": {
      "Id": 1,
      "UserID": 2,
      "filesize": 3,
      "filetype": "sample string 4",
      "filename": "sample string 5",
      "original_filename": "sample string 6"
    }
  }
]

text/html

Sample:
[{"Id":1,"Content":"sample string 2","ImageId":1,"TopicContentType":1,"NewsTopicId":3,"NewsTopic":{"Id":1,"Title":"sample string 2","NewsId":3,"News":{"Id":1,"Name":"sample string 2","Date":"2025-01-09T08:54:20.6023753+01:00","Footer":"sample string 4","Header":"sample string 5","MailFooter":"sample string 6","MailHeader":"sample string 7","Important":true}},"Image":{"Id":1,"UserID":2,"filesize":3,"filetype":"sample string 4","filename":"sample string 5","original_filename":"sample string 6"}},{"Id":1,"Content":"sample string 2","ImageId":1,"TopicContentType":1,"NewsTopicId":3,"NewsTopic":{"Id":1,"Title":"sample string 2","NewsId":3,"News":{"Id":1,"Name":"sample string 2","Date":"2025-01-09T08:54:20.6023753+01:00","Footer":"sample string 4","Header":"sample string 5","MailFooter":"sample string 6","MailHeader":"sample string 7","Important":true}},"Image":{"Id":1,"UserID":2,"filesize":3,"filetype":"sample string 4","filename":"sample string 5","original_filename":"sample string 6"}}]

application/xml, text/xml

Sample:
<ArrayOfTopicContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EnergyProject.Domain">
  <TopicContent>
    <Content>sample string 2</Content>
    <Id>1</Id>
    <Image>
      <Id>1</Id>
      <UserID>2</UserID>
      <filename>sample string 5</filename>
      <filesize>3</filesize>
      <filetype>sample string 4</filetype>
      <original_filename>sample string 6</original_filename>
    </Image>
    <ImageId>1</ImageId>
    <NewsTopic>
      <Id>1</Id>
      <News>
        <Date>2025-01-09T08:54:20.6023753+01:00</Date>
        <Footer>sample string 4</Footer>
        <Header>sample string 5</Header>
        <Id>1</Id>
        <Important>true</Important>
        <MailFooter>sample string 6</MailFooter>
        <MailHeader>sample string 7</MailHeader>
        <Name>sample string 2</Name>
      </News>
      <NewsId>3</NewsId>
      <Title>sample string 2</Title>
    </NewsTopic>
    <NewsTopicId>3</NewsTopicId>
    <TopicContentType>left</TopicContentType>
  </TopicContent>
  <TopicContent>
    <Content>sample string 2</Content>
    <Id>1</Id>
    <Image>
      <Id>1</Id>
      <UserID>2</UserID>
      <filename>sample string 5</filename>
      <filesize>3</filesize>
      <filetype>sample string 4</filetype>
      <original_filename>sample string 6</original_filename>
    </Image>
    <ImageId>1</ImageId>
    <NewsTopic>
      <Id>1</Id>
      <News>
        <Date>2025-01-09T08:54:20.6023753+01:00</Date>
        <Footer>sample string 4</Footer>
        <Header>sample string 5</Header>
        <Id>1</Id>
        <Important>true</Important>
        <MailFooter>sample string 6</MailFooter>
        <MailHeader>sample string 7</MailHeader>
        <Name>sample string 2</Name>
      </News>
      <NewsId>3</NewsId>
      <Title>sample string 2</Title>
    </NewsTopic>
    <NewsTopicId>3</NewsTopicId>
    <TopicContentType>left</TopicContentType>
  </TopicContent>
</ArrayOfTopicContent>