POST api/News/SaveComment/{Environment}/{NewsID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Environment | string |
Required |
|
NewsID | string |
Required |
Body Parameters
CommentsName | Description | Type | Additional information |
---|---|---|---|
CommentedBy | string |
None. |
|
Comment | string |
None. |
|
CommentedDateTime | date |
None. |
|
PictureURL | string |
None. |
|
Culture | string |
None. |
|
UserName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CommentedBy": "sample string 1", "Comment": "sample string 2", "CommentedDateTime": "2025-03-14T19:17:19.2185043+00:00", "PictureURL": "sample string 4", "Culture": "sample string 5", "UserName": "sample string 6" }
Response Information
Resource Description
ServiceResponseOfCommentResponseName | Description | Type | Additional information |
---|---|---|---|
Data | CommentResponse |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "CommentSaved": true, "CommentCount": 2.1, "Comment": [ { "CommentedBy": "sample string 1", "Comment": "sample string 2", "CommentedDateTime": "2025-03-14T19:17:19.2185043+00:00", "PictureURL": "sample string 4", "Culture": "sample string 5", "UserName": "sample string 6" }, { "CommentedBy": "sample string 1", "Comment": "sample string 2", "CommentedDateTime": "2025-03-14T19:17:19.2185043+00:00", "PictureURL": "sample string 4", "Culture": "sample string 5", "UserName": "sample string 6" } ], "NextPageInfo": { "PagingInfo": "sample string 1", "TypeId": "{922354eb-c56a-4d88-ad59-67496854efe1}" } } }