POST api/GetComment

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:19:53.096904+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:19:53.096904+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

Collection of 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.

Response Formats

application/json, text/json

Sample:
[
  {
    "ComId": 1,
    "CommentMsg": "sample string 2",
    "CommentedDate": "2025-12-27T03:19:53.096904+00:00",
    "CommentedDateShow": "sample string 4",
    "UserId": 5,
    "Username": "sample string 6",
    "imageProfile": "sample string 7",
    "MainType": 8,
    "PostId": 9
  },
  {
    "ComId": 1,
    "CommentMsg": "sample string 2",
    "CommentedDate": "2025-12-27T03:19:53.096904+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:
<ArrayOfCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
  <CommentModel>
    <ComId>1</ComId>
    <CommentMsg>sample string 2</CommentMsg>
    <CommentedDate>2025-12-27T03:19:53.096904+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>
  <CommentModel>
    <ComId>1</ComId>
    <CommentMsg>sample string 2</CommentMsg>
    <CommentedDate>2025-12-27T03:19:53.096904+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>
</ArrayOfCommentModel>