GET api/ITILNewsCommentary/GetCommentMsgById/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

returnData
NameDescriptionTypeAdditional information
Status

integer

None.

StatusMessage

string

None.

data

Collection of ITILNewsCommentaryDTO

None.

LikeNum

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1",
  "data": [
    {
      "Id": 1,
      "MsgID": "sample string 2",
      "CommentContent": "sample string 3",
      "ParentID": 4,
      "CreateTime": "2019-03-22T04:07:31.1528143+08:00",
      "CreatedBy": "sample string 6",
      "CreatedAccount": "sample string 7",
      "LikeNum": 8
    },
    {
      "Id": 1,
      "MsgID": "sample string 2",
      "CommentContent": "sample string 3",
      "ParentID": 4,
      "CreateTime": "2019-03-22T04:07:31.1528143+08:00",
      "CreatedBy": "sample string 6",
      "CreatedAccount": "sample string 7",
      "LikeNum": 8
    }
  ],
  "LikeNum": 2
}

application/xml, text/xml

Sample:
<returnData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOM">
  <LikeNum>2</LikeNum>
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DTO">
    <d2p1:ITILNewsCommentaryDTO>
      <d2p1:CommentContent>sample string 3</d2p1:CommentContent>
      <d2p1:CreateTime>2019-03-22T04:07:31.1528143+08:00</d2p1:CreateTime>
      <d2p1:CreatedAccount>sample string 7</d2p1:CreatedAccount>
      <d2p1:CreatedBy>sample string 6</d2p1:CreatedBy>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LikeNum>8</d2p1:LikeNum>
      <d2p1:MsgID>sample string 2</d2p1:MsgID>
      <d2p1:ParentID>4</d2p1:ParentID>
    </d2p1:ITILNewsCommentaryDTO>
    <d2p1:ITILNewsCommentaryDTO>
      <d2p1:CommentContent>sample string 3</d2p1:CommentContent>
      <d2p1:CreateTime>2019-03-22T04:07:31.1528143+08:00</d2p1:CreateTime>
      <d2p1:CreatedAccount>sample string 7</d2p1:CreatedAccount>
      <d2p1:CreatedBy>sample string 6</d2p1:CreatedBy>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LikeNum>8</d2p1:LikeNum>
      <d2p1:MsgID>sample string 2</d2p1:MsgID>
      <d2p1:ParentID>4</d2p1:ParentID>
    </d2p1:ITILNewsCommentaryDTO>
  </data>
</returnData>