GET api/Frontend/GetHomeData

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfHomeDTO
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

HomeDTO

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "RecentNews": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "Summary": "sample string 3",
        "Content": "sample string 4",
        "StartDate": "2019-10-15T05:56:45.9684141+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:56:45.9684141+02:00",
        "Afdelinger": "sample string 6",
        "ImageUrl": "sample string 7",
        "CreatedBy": "sample string 8",
        "ClickedCounter": 9
      }
    ],
    "ComingEvents": [
      {
        "Id": 1,
        "Afdeling": 0,
        "Title": "sample string 2",
        "Year": "sample string 3",
        "Activity": "sample string 4",
        "Description": "sample string 5",
        "Location": "sample string 6",
        "StartDate": "2019-10-15T05:56:45.9684141+02:00",
        "EndDate": "2019-10-15T05:56:45.9684141+02:00",
        "StartTime": "sample string 9",
        "EndTime": "sample string 10",
        "Status": 0,
        "RepeatOption": "sample string 11",
        "RecurringEndDate": "2019-10-15T05:56:45.9684141+02:00"
      },
      {
        "Id": 1,
        "Afdeling": 0,
        "Title": "sample string 2",
        "Year": "sample string 3",
        "Activity": "sample string 4",
        "Description": "sample string 5",
        "Location": "sample string 6",
        "StartDate": "2019-10-15T05:56:45.9684141+02:00",
        "EndDate": "2019-10-15T05:56:45.9684141+02:00",
        "StartTime": "sample string 9",
        "EndTime": "sample string 10",
        "Status": 0,
        "RepeatOption": "sample string 11",
        "RecurringEndDate": "2019-10-15T05:56:45.9684141+02:00"
      }
    ],
    "SliderImages": [
      {
        "Id": 1,
        "Guid": "sample string 2",
        "ImageUrl": "sample string 3",
        "Afdeling": 0,
        "Type": 0,
        "Title": "sample string 4",
        "Description": "sample string 5",
        "FrontText": "sample string 6",
        "FrontTextColor": "sample string 7",
        "FrontBackgroundColor": "sample string 8",
        "ShowOnFrontPage": true
      },
      {
        "Id": 1,
        "Guid": "sample string 2",
        "ImageUrl": "sample string 3",
        "Afdeling": 0,
        "Type": 0,
        "Title": "sample string 4",
        "Description": "sample string 5",
        "FrontText": "sample string 6",
        "FrontTextColor": "sample string 7",
        "FrontBackgroundColor": "sample string 8",
        "ShowOnFrontPage": true
      }
    ],
    "Sponsors": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "Url": "sample string 3",
        "ImageUrl": "sample string 4"
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "Url": "sample string 3",
        "ImageUrl": "sample string 4"
      }
    ]
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfHomeDTOw3aXqA2W 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:ComingEvents>
      <d2p1:EventDTO>
        <d2p1:Activity>sample string 4</d2p1:Activity>
        <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:EndDate>2019-10-15T05:56:45.9684141+02:00</d2p1:EndDate>
        <d2p1:EndTime>sample string 10</d2p1:EndTime>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Location>sample string 6</d2p1:Location>
        <d2p1:RecurringEndDate>2019-10-15T05:56:45.9684141+02:00</d2p1:RecurringEndDate>
        <d2p1:RepeatOption>sample string 11</d2p1:RepeatOption>
        <d2p1:StartDate>2019-10-15T05:56:45.9684141+02:00</d2p1:StartDate>
        <d2p1:StartTime>sample string 9</d2p1:StartTime>
        <d2p1:Status>Aktiv</d2p1:Status>
        <d2p1:Title>sample string 2</d2p1:Title>
        <d2p1:Year>sample string 3</d2p1:Year>
      </d2p1:EventDTO>
      <d2p1:EventDTO>
        <d2p1:Activity>sample string 4</d2p1:Activity>
        <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:EndDate>2019-10-15T05:56:45.9684141+02:00</d2p1:EndDate>
        <d2p1:EndTime>sample string 10</d2p1:EndTime>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Location>sample string 6</d2p1:Location>
        <d2p1:RecurringEndDate>2019-10-15T05:56:45.9684141+02:00</d2p1:RecurringEndDate>
        <d2p1:RepeatOption>sample string 11</d2p1:RepeatOption>
        <d2p1:StartDate>2019-10-15T05:56:45.9684141+02:00</d2p1:StartDate>
        <d2p1:StartTime>sample string 9</d2p1:StartTime>
        <d2p1:Status>Aktiv</d2p1:Status>
        <d2p1:Title>sample string 2</d2p1:Title>
        <d2p1:Year>sample string 3</d2p1:Year>
      </d2p1:EventDTO>
    </d2p1:ComingEvents>
    <d2p1:RecentNews>
      <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:56:45.9684141+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:56:45.9684141+02:00</d2p1:StartDate>
        <d2p1:Summary>sample string 3</d2p1:Summary>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:NewsDTO>
    </d2p1:RecentNews>
    <d2p1:SliderImages xmlns:d3p1="http://schemas.datacontract.org/2004/07/Model.DTOClasses">
      <d3p1:ImageDTO>
        <d3p1:Afdeling>Håndbold</d3p1:Afdeling>
        <d3p1:Description>sample string 5</d3p1:Description>
        <d3p1:FrontBackgroundColor>sample string 8</d3p1:FrontBackgroundColor>
        <d3p1:FrontText>sample string 6</d3p1:FrontText>
        <d3p1:FrontTextColor>sample string 7</d3p1:FrontTextColor>
        <d3p1:Guid>sample string 2</d3p1:Guid>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:ImageUrl>sample string 3</d3p1:ImageUrl>
        <d3p1:ShowOnFrontPage>true</d3p1:ShowOnFrontPage>
        <d3p1:Title>sample string 4</d3p1:Title>
        <d3p1:Type>News</d3p1:Type>
      </d3p1:ImageDTO>
      <d3p1:ImageDTO>
        <d3p1:Afdeling>Håndbold</d3p1:Afdeling>
        <d3p1:Description>sample string 5</d3p1:Description>
        <d3p1:FrontBackgroundColor>sample string 8</d3p1:FrontBackgroundColor>
        <d3p1:FrontText>sample string 6</d3p1:FrontText>
        <d3p1:FrontTextColor>sample string 7</d3p1:FrontTextColor>
        <d3p1:Guid>sample string 2</d3p1:Guid>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:ImageUrl>sample string 3</d3p1:ImageUrl>
        <d3p1:ShowOnFrontPage>true</d3p1:ShowOnFrontPage>
        <d3p1:Title>sample string 4</d3p1:Title>
        <d3p1:Type>News</d3p1:Type>
      </d3p1:ImageDTO>
    </d2p1:SliderImages>
    <d2p1:Sponsors>
      <d2p1:SponsorDTO>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageUrl>sample string 4</d2p1:ImageUrl>
        <d2p1:Name>sample string 2</d2p1:Name>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:SponsorDTO>
      <d2p1:SponsorDTO>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageUrl>sample string 4</d2p1:ImageUrl>
        <d2p1:Name>sample string 2</d2p1:Name>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:SponsorDTO>
    </d2p1:Sponsors>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfHomeDTOw3aXqA2W>