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 PostCommentsViewName | 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-07-28T13:34:54.6287808-07:00", "DateCreated": "2025-07-28T13:34:54.6287808-07:00" }, { "PersonName": "sample string 1", "CommentID": 2, "PostID": 3, "PersonID": 4, "Comment": "sample string 5", "DateModified": "2025-07-28T13:34:54.6287808-07:00", "DateCreated": "2025-07-28T13:34:54.6287808-07: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-07-28T13:34:54.6287808-07:00</DateCreated> <DateModified>2025-07-28T13:34:54.6287808-07: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-07-28T13:34:54.6287808-07:00</DateCreated> <DateModified>2025-07-28T13:34:54.6287808-07:00</DateModified> <Comment>sample string 5</Comment> <CommentID>2</CommentID> <PersonID>4</PersonID> <PostID>3</PostID> <PersonName>sample string 1</PersonName> </PostCommentsView> </ArrayOfPostCommentsView>