1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-13 05:42:30 +03:00
Files
bookstack/dev/api/responses/comments-read.json
Dan Brown a949900570 API: Added examples for comments
Tweaked comment repo to avoid returning a lot of extra data on API
update responses.
2025-10-24 15:14:25 +01:00

38 lines
780 B
JSON

{
"id": 22,
"commentable_id": 2646,
"commentable_type": "page",
"html": "<p>This page looks great!<\/p>\n",
"parent_id": null,
"local_id": 2,
"created_by": {
"id": 1,
"name": "Admin",
"slug": "admin"
},
"updated_by": {
"id": 1,
"name": "Admin",
"slug": "admin"
},
"created_at": "2023-06-07T07:50:56.000000Z",
"updated_at": "2023-06-07T07:50:56.000000Z",
"content_ref": "",
"archived": false,
"replies": [
{
"id": 34,
"commentable_id": 2646,
"commentable_type": "page",
"html": "<p>Thanks for the comment!<\/p>\n",
"parent_id": 2,
"local_id": 10,
"created_by": 2,
"updated_by": 2,
"created_at": "2023-06-07T13:46:25.000000Z",
"updated_at": "2023-06-07T13:46:25.000000Z",
"content_ref": "",
"archived": false
}
]
}