OpenIsle Docs
API 概览
Delete comment DELETE
Pin comment POST
Api
Comments
Id
Pin

# Pin comment

Pin a comment

POST
/`api`/`comments`/`{id}`/`pin`

## Authorization

Authorization Bearer <token>

In: `header`

## Path Parameters

id integer
Format `int64`

## Response Body

###

    curl -X POST "https://www.open-isle.com/api/comments/0/pin"

    {
      "id": 0,
      "content": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "pinnedAt": "2019-08-24T14:15:22Z",
      "author": {
        "id": 0,
        "username": "string",
        "avatar": "string",
        "displayMedal": "COMMENT",
        "bot": true
      },
      "replies": [
        {
          "id": 0,
          "content": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "pinnedAt": "2019-08-24T14:15:22Z",
          "author": {
            "id": 0,
            "username": "string",
            "avatar": "string",
            "displayMedal": "COMMENT",
            "bot": true
          },
          "replies": [],
          "reactions": [
            {
              "id": 0,
              "type": "LIKE",
              "user": "string",
              "postId": 0,
              "commentId": 0,
              "messageId": 0,
              "reward": 0
            }
          ],
          "reward": 0,
          "pointReward": 0
        }
      ],
      "reactions": [
        {
          "id": 0,
          "type": "LIKE",
          "user": "string",
          "postId": 0,
          "commentId": 0,
          "messageId": 0,
          "reward": 0
        }
      ],
      "reward": 0,
      "pointReward": 0
    }

Delete comment DELETE

Previous Page

Unpin comment POST

Next Page

    curl -X POST "https://www.open-isle.com/api/comments/0/pin"