OpenIsle Docs
ApiPostsIdChange logs

Post change logs

List change logs for a post

GET
/api/posts/{id}/change-logs
AuthorizationBearer <token>

In: header

Path Parameters

idinteger
Formatint64

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
  }
]