POST api/News?htmldoc={htmldoc}&rawText={rawText}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
htmldoc

string

Required

rawText

string

Required

Body Parameters

None.

Response Information

Resource Description

Event
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

NameAr

string

None.

NameFr

string

None.

StartDate

date

None.

EndDate

date

None.

CountryCode

integer

None.

City

string

None.

CityAr

string

None.

CityFr

string

None.

Summary

string

None.

SummaryAr

string

None.

SummaryFr

string

None.

ShortSummary

string

None.

PastFormStat

integer

None.

ModifiedDate

date

None.

Invisibility

boolean

None.

Highlight

integer

None.

HighlightText

string

None.

Modified

integer

None.

ModifiedBy

string

None.

TwitterText

string

None.

ImagePath

string

None.

Priority

integer

None.

Country

Country

None.

Report

string

None.

ReportAr

string

None.

ReportFr

string

None.

MainPage

integer

None.

Tbd

integer

None.

IsTobeDetermined

boolean

None.

IsPastFormStat

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "NameAr": "sample string 3",
  "NameFr": "sample string 4",
  "StartDate": "2020-10-29T20:19:08.8814199+03:00",
  "EndDate": "2020-10-29T20:19:08.8814199+03:00",
  "CountryCode": 1,
  "City": "sample string 5",
  "CityAr": "sample string 6",
  "CityFr": "sample string 7",
  "Summary": "sample string 8",
  "SummaryAr": "sample string 9",
  "SummaryFr": "sample string 10",
  "ShortSummary": "sample string 11",
  "PastFormStat": 1,
  "ModifiedDate": "2020-10-29T20:19:08.8970988+03:00",
  "Invisibility": true,
  "Highlight": 1,
  "HighlightText": "sample string 12",
  "Modified": 1,
  "ModifiedBy": "sample string 13",
  "TwitterText": "sample string 14",
  "ImagePath": "sample string 15",
  "Priority": 1,
  "Country": {
    "Id": 1,
    "TrafficCode": "sample string 2",
    "ShortNameEn": "sample string 3",
    "ShortNameFr": "sample string 4",
    "ShortNameAr": "sample string 5",
    "FullNameEn": "sample string 6",
    "FullNameFr": "sample string 7",
    "FullNameAr": "sample string 8",
    "PhonePrefix": "sample string 9",
    "ShortNameTr": "sample string 10",
    "FullNameTr": "sample string 11"
  },
  "Report": "sample string 16",
  "ReportAr": "sample string 17",
  "ReportFr": "sample string 18",
  "MainPage": 1,
  "Tbd": 19,
  "IsTobeDetermined": true,
  "IsPastFormStat": true
}

application/xml, text/xml

Sample:
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models.Events">
  <City>sample string 5</City>
  <CityAr>sample string 6</CityAr>
  <CityFr>sample string 7</CityFr>
  <Country xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models">
    <d2p1:FullNameAr>sample string 8</d2p1:FullNameAr>
    <d2p1:FullNameEn>sample string 6</d2p1:FullNameEn>
    <d2p1:FullNameFr>sample string 7</d2p1:FullNameFr>
    <d2p1:FullNameTr>sample string 11</d2p1:FullNameTr>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:PhonePrefix>sample string 9</d2p1:PhonePrefix>
    <d2p1:ShortNameAr>sample string 5</d2p1:ShortNameAr>
    <d2p1:ShortNameEn>sample string 3</d2p1:ShortNameEn>
    <d2p1:ShortNameFr>sample string 4</d2p1:ShortNameFr>
    <d2p1:ShortNameTr>sample string 10</d2p1:ShortNameTr>
    <d2p1:TrafficCode>sample string 2</d2p1:TrafficCode>
  </Country>
  <CountryCode>1</CountryCode>
  <EndDate>2020-10-29T20:19:08.8814199+03:00</EndDate>
  <Highlight>1</Highlight>
  <HighlightText>sample string 12</HighlightText>
  <Id>1</Id>
  <ImagePath>sample string 15</ImagePath>
  <Invisibility>true</Invisibility>
  <MainPage>1</MainPage>
  <Modified>1</Modified>
  <ModifiedBy>sample string 13</ModifiedBy>
  <ModifiedDate>2020-10-29T20:19:08.8970988+03:00</ModifiedDate>
  <Name>sample string 2</Name>
  <NameAr>sample string 3</NameAr>
  <NameFr>sample string 4</NameFr>
  <PastFormStat>1</PastFormStat>
  <Priority>1</Priority>
  <Report>sample string 16</Report>
  <ReportAr>sample string 17</ReportAr>
  <ReportFr>sample string 18</ReportFr>
  <ShortSummary>sample string 11</ShortSummary>
  <StartDate>2020-10-29T20:19:08.8814199+03:00</StartDate>
  <Summary>sample string 8</Summary>
  <SummaryAr>sample string 9</SummaryAr>
  <SummaryFr>sample string 10</SummaryFr>
  <Tbd>19</Tbd>
  <TwitterText>sample string 14</TwitterText>
</Event>