POST api/AddComment

Request Information

URI Parameters

None.

Body Parameters

CommentModel
NameDescriptionTypeAdditional information
ComId

integer

None.

CommentMsg

string

None.

CommentedDate

date

None.

CommentedDateShow

string

None.

UserId

integer

None.

Username

string

None.

imageProfile

string

None.

MainType

integer

None.

PostId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ComId": 1,
  "CommentMsg": "sample string 2",
  "CommentedDate": "2025-12-27T03:10:41.4643538+00:00",
  "CommentedDateShow": "sample string 4",
  "UserId": 5,
  "Username": "sample string 6",
  "imageProfile": "sample string 7",
  "MainType": 8,
  "PostId": 9
}

application/xml, text/xml

Sample:
<CommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
  <ComId>1</ComId>
  <CommentMsg>sample string 2</CommentMsg>
  <CommentedDate>2025-12-27T03:10:41.4643538+00:00</CommentedDate>
  <CommentedDateShow>sample string 4</CommentedDateShow>
  <MainType>8</MainType>
  <PostId>9</PostId>
  <UserId>5</UserId>
  <Username>sample string 6</Username>
  <imageProfile>sample string 7</imageProfile>
</CommentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Id

integer

None.

Result

string

None.

newResult

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Result": "sample string 2",
  "newResult": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
  <Id>1</Id>
  <Result>sample string 2</Result>
  <newResult>sample string 3</newResult>
</ResultModel>