OpenIsle Docs
API 概览
List posts GET Create post POST
Delete post DELETE Get post GET Update post PUT
Post change logs GET
Api
Posts
Id
Change logs

# Post change logs

List change logs for a post

GET
/`api`/`posts`/`{id}`/`change-logs`

## Authorization

AuthorizationBearer <token>

In: `header`

## Path Parameters

idinteger
Format `int64`

## Response Body

###

    curl -X GET "https://www.open-isle.com/api/posts/0/change-logs"

    [
      {
        "id": 0,
        "username": "string",
        "userAvatar": "string",
        "type": "CONTENT",
        "time": "2019-08-24T14:15:22Z",
        "oldTitle": "string",
        "newTitle": "string",
        "oldContent": "string",
        "newContent": "string",
        "oldCategory": {
          "id": 0,
          "name": "string",
          "description": "string",
          "icon": "string",
          "smallIcon": "string",
          "count": 0
        },
        "newCategory": {
          "id": 0,
          "name": "string",
          "description": "string",
          "icon": "string",
          "smallIcon": "string",
          "count": 0
        },
        "oldTags": [
          {
            "id": 0,
            "name": "string",
            "description": "string",
            "icon": "string",
            "smallIcon": "string",
            "createdAt": "2019-08-24T14:15:22Z",
            "count": 0
          }
        ],
        "newTags": [
          {
            "id": 0,
            "name": "string",
            "description": "string",
            "icon": "string",
            "smallIcon": "string",
            "createdAt": "2019-08-24T14:15:22Z",
            "count": 0
          }
        ],
        "oldClosed": true,
        "newClosed": true,
        "oldPinnedAt": "2019-08-24T14:15:22Z",
        "newPinnedAt": "2019-08-24T14:15:22Z",
        "oldFeatured": true,
        "newFeatured": true
      }
    ]

Update post PUT

Previous Page

Close post POST

Next Page

    curl -X GET "https://www.open-isle.com/api/posts/0/change-logs"