OpenIsle Docs
API 概览
List posts GET Create post POST
List comments GET Create comment POST
Api
Posts
Postid
Comments

# List comments

List comments for a post

GET
/`api`/`posts`/`{postId}`/`comments`

## Authorization

AuthorizationBearer <token>

In: `header`

## Path Parameters

postIdinteger
Format `int64`

## 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",
        "pinnedAt": "2019-08-24T14:15:22Z",
        "payload": {}
      }
    ]

Latest reply posts GET

Previous Page

Create comment POST

Next Page

    curl -X GET "https://www.open-isle.com/api/posts/0/comments?sort=NEWEST"