GET api/Posts/GetAllComments?postID={postID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| postID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PostCommentsView| Name | Description | Type | Additional information |
|---|---|---|---|
| PersonName | string |
None. |
|
| CommentID | integer |
None. |
|
| PostID | integer |
None. |
|
| PersonID | integer |
None. |
|
| Comment | string |
None. |
|
| DateModified | date |
None. |
|
| DateCreated | date |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"PersonName": "sample string 1",
"CommentID": 2,
"PostID": 3,
"PersonID": 4,
"Comment": "sample string 5",
"DateModified": "2025-12-05T20:21:08.0157383-08:00",
"DateCreated": "2025-12-05T20:21:08.0157383-08:00"
},
{
"PersonName": "sample string 1",
"CommentID": 2,
"PostID": 3,
"PersonID": 4,
"Comment": "sample string 5",
"DateModified": "2025-12-05T20:21:08.0157383-08:00",
"DateCreated": "2025-12-05T20:21:08.0157383-08:00"
}
]
application/xml, text/xml
Sample:
<ArrayOfPostCommentsView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities">
<PostCommentsView>
<DateCreated>2025-12-05T20:21:08.0157383-08:00</DateCreated>
<DateModified>2025-12-05T20:21:08.0157383-08:00</DateModified>
<Comment>sample string 5</Comment>
<CommentID>2</CommentID>
<PersonID>4</PersonID>
<PostID>3</PostID>
<PersonName>sample string 1</PersonName>
</PostCommentsView>
<PostCommentsView>
<DateCreated>2025-12-05T20:21:08.0157383-08:00</DateCreated>
<DateModified>2025-12-05T20:21:08.0157383-08:00</DateModified>
<Comment>sample string 5</Comment>
<CommentID>2</CommentID>
<PersonID>4</PersonID>
<PostID>3</PostID>
<PersonName>sample string 1</PersonName>
</PostCommentsView>
</ArrayOfPostCommentsView>