GET api/Frontend/GetSingleNews/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfSingleNewsDTO
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

SingleNewsDTO

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "News": {
      "Id": 1,
      "Title": "sample string 2",
      "Summary": "sample string 3",
      "Content": "sample string 4",
      "StartDate": "2019-10-15T06:36:50.8690109+02:00",
      "Afdelinger": "sample string 6",
      "ImageUrl": "sample string 7",
      "CreatedBy": "sample string 8",
      "ClickedCounter": 9
    },
    "RecentNewsFromAfdeling": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "Summary": "sample string 3",
        "Content": "sample string 4",
        "StartDate": "2019-10-15T06:36:50.8690109+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-15T06:36:50.8690109+02:00",
        "Afdelinger": "sample string 6",
        "ImageUrl": "sample string 7",
        "CreatedBy": "sample string 8",
        "ClickedCounter": 9
      }
    ],
    "RecentNewsFromOther": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "Summary": "sample string 3",
        "Content": "sample string 4",
        "StartDate": "2019-10-15T06:36:50.8690109+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-15T06:36:50.8690109+02:00",
        "Afdelinger": "sample string 6",
        "ImageUrl": "sample string 7",
        "CreatedBy": "sample string 8",
        "ClickedCounter": 9
      }
    ]
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfSingleNewsDTOw3aXqA2W 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:News>
      <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-15T06:36:50.8690109+02:00</d2p1:StartDate>
      <d2p1:Summary>sample string 3</d2p1:Summary>
      <d2p1:Title>sample string 2</d2p1:Title>
    </d2p1:News>
    <d2p1:RecentNewsFromAfdeling>
      <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-15T06:36:50.8690109+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-15T06:36:50.8690109+02:00</d2p1:StartDate>
        <d2p1:Summary>sample string 3</d2p1:Summary>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:NewsDTO>
    </d2p1:RecentNewsFromAfdeling>
    <d2p1:RecentNewsFromOther>
      <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-15T06:36:50.8690109+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-15T06:36:50.8690109+02:00</d2p1:StartDate>
        <d2p1:Summary>sample string 3</d2p1:Summary>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:NewsDTO>
    </d2p1:RecentNewsFromOther>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfSingleNewsDTOw3aXqA2W>