POST api/ITILAnnouncementArticle/AddITILAnnouncementArticleSubmit

Request Information

URI Parameters

None.

Body Parameters

ITILAnnouncementArticleDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

ArticleContents

string

None.

Type

integer

None.

ReleaseRange

string

None.

AdImage

string

None.

ImgLinkUrl

string

None.

ValidTime

date

None.

CreateTime

date

None.

CreateTimeTxt

string

None.

Creater

string

None.

ModifyTime

date

None.

Modifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "ArticleContents": "sample string 3",
  "Type": 4,
  "ReleaseRange": "sample string 5",
  "AdImage": "sample string 6",
  "ImgLinkUrl": "sample string 7",
  "ValidTime": "2019-05-23T15:58:36.3549874+08:00",
  "CreateTime": "2019-05-23T15:58:36.3549874+08:00",
  "CreateTimeTxt": "2019-05-23",
  "Creater": "sample string 9",
  "ModifyTime": "2019-05-23T15:58:36.3549874+08:00",
  "Modifier": "sample string 10"
}

application/xml, text/xml

Sample:
<ITILAnnouncementArticleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <AdImage>sample string 6</AdImage>
  <ArticleContents>sample string 3</ArticleContents>
  <CreateTime>2019-05-23T15:58:36.3549874+08:00</CreateTime>
  <Creater>sample string 9</Creater>
  <Id>1</Id>
  <ImgLinkUrl>sample string 7</ImgLinkUrl>
  <Modifier>sample string 10</Modifier>
  <ModifyTime>2019-05-23T15:58:36.3549874+08:00</ModifyTime>
  <ReleaseRange>sample string 5</ReleaseRange>
  <Title>sample string 2</Title>
  <Type>4</Type>
  <ValidTime>2019-05-23T15:58:36.3549874+08:00</ValidTime>
</ITILAnnouncementArticleDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ITILAnnouncementArticleDTO'.

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>