POST api/PagePosts/PostPagePostComment
Thêm bình luận cho một bài viết
Request Information
URI Parameters
None.
Body Parameters
Dữ liệu bình luận.
TPagePostCommentNew| Name | Description | Type | Additional information |
|---|---|---|---|
| PagePostID |
ID bài viết |
integer |
None. |
| Content |
Nội dung bình luận |
string |
None. |
| CommenterID |
ID người bình luận (0=Khách) |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PagePostID": 1,
"Content": "sample string 2",
"CommenterID": 3
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Trả về bài viết đã xóa.
PagePostComment| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| PagePostID | integer |
None. |
|
| Content | string |
Required |
|
| State | integer |
None. |
|
| TaskforceID | integer |
None. |
|
| IABoardID | integer |
None. |
|
| HeartCount | integer |
None. |
|
| LikeCount | integer |
None. |
|
| ShareCount | integer |
None. |
|
| CreatedUserID | integer |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedUserID | integer |
None. |
|
| UpdatedTime | date |
None. |
|
| PagePost | PagePost |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"PagePostID": 2,
"Content": "sample string 3",
"State": 4,
"TaskforceID": 5,
"IABoardID": 6,
"HeartCount": 7,
"LikeCount": 8,
"ShareCount": 9,
"CreatedUserID": 1,
"CreatedTime": "2026-01-09T22:09:19.4758118+07:00",
"UpdatedUserID": 1,
"UpdatedTime": "2026-01-09T22:09:19.4758118+07:00",
"PagePost": {
"$id": "2",
"ID": 1,
"PageTopicID": 2,
"Title": "sample string 3",
"Summary": "sample string 4",
"Content": "sample string 5",
"PrePicture": "sample string 6",
"State": 7,
"Level": 8,
"TaskforceID": 9,
"IABoardID": 10,
"CommentCount": 11,
"HeartCount": 12,
"LikeCount": 13,
"ShareCount": 14,
"en": 15,
"enTitle": "sample string 16",
"enSummary": "sample string 17",
"enContent": "sample string 18",
"CreatedUserID": 1,
"CreatedTime": "2026-01-09T22:09:19.4758118+07:00",
"UpdatedUserID": 1,
"UpdatedTime": "2026-01-09T22:09:19.4758118+07:00",
"PageTopic": {
"$id": "3",
"ID": 1,
"ParentID": 2,
"Content": "sample string 3",
"Level": 4,
"State": 5,
"Note": "sample string 6",
"TaskforceID": 7,
"IABoardID": 8,
"SubTopicCount": 9,
"PostCount": 10,
"CommentCount": 11,
"CreatedUserID": 1,
"CreatedTime": "2026-01-09T22:09:19.4964236+07:00",
"UpdatedUserID": 1,
"UpdatedTime": "2026-01-09T22:09:19.4964236+07:00",
"PagePosts": [
{
"$ref": "2"
},
{
"$ref": "2"
}
]
}
}
}