]> BookStack Code Mirror - bookstack/blob - dev/api/responses/comments-read.json
API: Added examples for comments
[bookstack] / dev / api / responses / comments-read.json
1 {
2         "id": 22,
3         "commentable_id": 2646,
4         "commentable_type": "page",
5         "html": "<p>This page looks great!<\/p>\n",
6         "parent_id": null,
7         "local_id": 2,
8         "created_by": {
9                 "id": 1,
10                 "name": "Admin",
11                 "slug": "admin"
12         },
13         "updated_by": {
14                 "id": 1,
15                 "name": "Admin",
16                 "slug": "admin"
17         },
18         "created_at": "2023-06-07T07:50:56.000000Z",
19         "updated_at": "2023-06-07T07:50:56.000000Z",
20         "content_ref": "",
21         "archived": false,
22         "replies": [
23                 {
24                         "id": 34,
25                         "commentable_id": 2646,
26                         "commentable_type": "page",
27                         "html": "<p>Thanks for the comment!<\/p>\n",
28                         "parent_id": 2,
29                         "local_id": 10,
30                         "created_by": 2,
31                         "updated_by": 2,
32                         "created_at": "2023-06-07T13:46:25.000000Z",
33                         "updated_at": "2023-06-07T13:46:25.000000Z",
34                         "content_ref": "",
35                         "archived": false
36                 }
37         ]
38 }