GET api/Frontend/GetAllNews

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfAllNewsDTO
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

AllNewsDTO

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "AllNews": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "Summary": "sample string 3",
        "Content": "sample string 4",
        "StartDate": "2019-10-15T05:49:45.6576372+02:00",
        "Afdelinger": "sample string 6",
        "ImageUrl": "sample string 7",
        "CreatedBy": "sample string 8",
        "ClickedCounter": 9
      },
      {
        "Id": 1,
        "Title": "sample string 2",
        "Summary": "sample string 3",
        "Content": "sample string 4",
        "StartDate": "2019-10-15T05:49:45.6576372+02:00",
        "Afdelinger": "sample string 6",
        "ImageUrl": "sample string 7",
        "CreatedBy": "sample string 8",
        "ClickedCounter": 9
      }
    ]
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfAllNewsDTOw3aXqA2W xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model.DTOClasses.Frontend">
    <d2p1:AllNews>
      <d2p1:NewsDTO>
        <d2p1:Afdelinger>sample string 6</d2p1:Afdelinger>
        <d2p1:ClickedCounter>9</d2p1:ClickedCounter>
        <d2p1:Content>sample string 4</d2p1:Content>
        <d2p1:CreatedBy>sample string 8</d2p1:CreatedBy>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageUrl>sample string 7</d2p1:ImageUrl>
        <d2p1:StartDate>2019-10-15T05:49:45.6576372+02:00</d2p1:StartDate>
        <d2p1:Summary>sample string 3</d2p1:Summary>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:NewsDTO>
      <d2p1:NewsDTO>
        <d2p1:Afdelinger>sample string 6</d2p1:Afdelinger>
        <d2p1:ClickedCounter>9</d2p1:ClickedCounter>
        <d2p1:Content>sample string 4</d2p1:Content>
        <d2p1:CreatedBy>sample string 8</d2p1:CreatedBy>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageUrl>sample string 7</d2p1:ImageUrl>
        <d2p1:StartDate>2019-10-15T05:49:45.6576372+02:00</d2p1:StartDate>
        <d2p1:Summary>sample string 3</d2p1:Summary>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:NewsDTO>
    </d2p1:AllNews>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfAllNewsDTOw3aXqA2W>