OpenIsle Docs
ApiPostsPostidComments

List comments

List comments for a post

GET
/api/posts/{postId}/comments
AuthorizationBearer <token>

In: header

Path Parameters

postIdinteger
Formatint64

Query Parameters

sort?string
Default"OLDEST"
Value in"NEWEST" | "OLDEST" | "MOST_INTERACTIONS"

Response Body

curl -X GET "https://www.open-isle.com/api/posts/0/comments?sort=NEWEST"
[
  {
    "id": 0,
    "kind": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "payload": {}
  }
]