POST api/ITILNewsCommentary/EditITILNewsCommentarySubmit

Request Information

URI Parameters

None.

Body Parameters

ITILNewsCommentaryDTO
NameDescriptionTypeAdditional information
Id

integer

None.

MsgID

string

None.

CommentContent

string

None.

ParentID

integer

None.

CreateTime

date

None.

CreatedBy

string

None.

CreatedAccount

string

None.

LikeNum

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "MsgID": "sample string 2",
  "CommentContent": "sample string 3",
  "ParentID": 4,
  "CreateTime": "2019-05-24T00:32:27.2299544+08:00",
  "CreatedBy": "sample string 6",
  "CreatedAccount": "sample string 7",
  "LikeNum": 8
}

application/xml, text/xml

Sample:
<ITILNewsCommentaryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CommentContent>sample string 3</CommentContent>
  <CreateTime>2019-05-24T00:32:27.2299544+08:00</CreateTime>
  <CreatedAccount>sample string 7</CreatedAccount>
  <CreatedBy>sample string 6</CreatedBy>
  <Id>1</Id>
  <LikeNum>8</LikeNum>
  <MsgID>sample string 2</MsgID>
  <ParentID>4</ParentID>
</ITILNewsCommentaryDTO>

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 'ITILNewsCommentaryDTO'.

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>