GET api/news/detail/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

News
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

TitleAr

string

None.

TitleFr

string

None.

Content

string

None.

ContentAr

string

None.

ContentFr

string

None.

Summary

string

None.

SummaryAr

string

None.

ShortSummary

string

None.

ShortSummaryAr

string

None.

ShortSummaryFr

string

None.

SubCategoryId

integer

None.

DateAdded

date

None.

Ordering

integer

None.

MainPage

integer

None.

Highlight

integer

None.

HighlightText

string

None.

Modified

integer

None.

ModifiedBy

string

None.

SubCategory

NewsSubCategory

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "TitleAr": "sample string 3",
  "TitleFr": "sample string 4",
  "Content": "sample string 5",
  "ContentAr": "sample string 6",
  "ContentFr": "sample string 7",
  "Summary": "sample string 8",
  "SummaryAr": "sample string 9",
  "ShortSummary": "sample string 10",
  "ShortSummaryAr": "sample string 11",
  "ShortSummaryFr": "sample string 12",
  "SubCategoryId": 13,
  "DateAdded": "2020-10-29T19:50:03.9019407+03:00",
  "Ordering": 1,
  "MainPage": 15,
  "Highlight": 16,
  "HighlightText": "sample string 17",
  "Modified": 1,
  "ModifiedBy": "sample string 18",
  "SubCategory": {
    "Id": 1,
    "MainCategoryId": 1,
    "Name": "sample string 2",
    "Ordering": 1
  }
}

application/xml, text/xml

Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models.Announcements">
  <Content>sample string 5</Content>
  <ContentAr>sample string 6</ContentAr>
  <ContentFr>sample string 7</ContentFr>
  <DateAdded>2020-10-29T19:50:03.9019407+03:00</DateAdded>
  <Highlight>16</Highlight>
  <HighlightText>sample string 17</HighlightText>
  <Id>1</Id>
  <MainPage>15</MainPage>
  <Modified>1</Modified>
  <ModifiedBy>sample string 18</ModifiedBy>
  <Ordering>1</Ordering>
  <ShortSummary>sample string 10</ShortSummary>
  <ShortSummaryAr>sample string 11</ShortSummaryAr>
  <ShortSummaryFr>sample string 12</ShortSummaryFr>
  <SubCategory xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models.NewsCategories">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:MainCategoryId>1</d2p1:MainCategoryId>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:Ordering>1</d2p1:Ordering>
  </SubCategory>
  <SubCategoryId>13</SubCategoryId>
  <Summary>sample string 8</Summary>
  <SummaryAr>sample string 9</SummaryAr>
  <Title>sample string 2</Title>
  <TitleAr>sample string 3</TitleAr>
  <TitleFr>sample string 4</TitleFr>
</News>