mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-13 22:43:39 +08:00
fec44452cb
Review of #5280. - Removed additional non-needed loads which could ignore permissions. - Updated new formatter method name to be more specific on use. - Added test case to cover changes. - Updated API examples to align parent id/info in info to be representative.
93 lines
2.5 KiB
JSON
93 lines
2.5 KiB
JSON
{
|
|
"data": [
|
|
{
|
|
"id": 84,
|
|
"book_id": 1,
|
|
"slug": "a-chapter-for-cats",
|
|
"name": "A chapter for cats",
|
|
"created_at": "2021-11-14T15:57:35.000000Z",
|
|
"updated_at": "2021-11-14T15:57:35.000000Z",
|
|
"type": "chapter",
|
|
"url": "https://example.com/books/cats/chapter/a-chapter-for-cats",
|
|
"book": {
|
|
"id": 1,
|
|
"name": "Cats",
|
|
"slug": "cats"
|
|
},
|
|
"preview_html": {
|
|
"name": "A chapter for <strong>cats</strong>",
|
|
"content": "...once a bunch of <strong>cats</strong> named tony...behaviour of <strong>cats</strong> is unsuitable"
|
|
},
|
|
"tags": []
|
|
},
|
|
{
|
|
"name": "The hows and whys of cats",
|
|
"id": 396,
|
|
"slug": "the-hows-and-whys-of-cats",
|
|
"book_id": 1,
|
|
"chapter_id": 75,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2021-05-15T16:28:10.000000Z",
|
|
"updated_at": "2021-11-14T15:56:49.000000Z",
|
|
"type": "page",
|
|
"url": "https://example.com/books/cats/page/the-hows-and-whys-of-cats",
|
|
"book": {
|
|
"id": 1,
|
|
"name": "Cats",
|
|
"slug": "cats"
|
|
},
|
|
"chapter": {
|
|
"id": 75,
|
|
"name": "A chapter for cats",
|
|
"slug": "a-chapter-for-cats"
|
|
},
|
|
"preview_html": {
|
|
"name": "The hows and whys of <strong>cats</strong>",
|
|
"content": "...people ask why <strong>cats</strong>? but there are...the reason that <strong>cats</strong> are fast are due to..."
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Animal",
|
|
"value": "Cat",
|
|
"order": 0
|
|
},
|
|
{
|
|
"name": "Category",
|
|
"value": "Top Content",
|
|
"order": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "How advanced are cats?",
|
|
"id": 362,
|
|
"slug": "how-advanced-are-cats",
|
|
"book_id": 13,
|
|
"chapter_id": 73,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2020-11-29T21:55:07.000000Z",
|
|
"updated_at": "2021-11-14T16:02:39.000000Z",
|
|
"type": "page",
|
|
"url": "https://example.com/books/big-cats/page/how-advanced-are-cats",
|
|
"book": {
|
|
"id": 13,
|
|
"name": "Big Cats",
|
|
"slug": "big-cats"
|
|
},
|
|
"chapter": {
|
|
"id": 73,
|
|
"name": "A chapter for bigger cats",
|
|
"slug": "a-chapter-for-bigger-cats"
|
|
},
|
|
"preview_html": {
|
|
"name": "How advanced are <strong>cats</strong>?",
|
|
"content": "<strong>cats</strong> are some of the most advanced animals in the world."
|
|
},
|
|
"tags": []
|
|
}
|
|
],
|
|
"total": 3
|
|
}
|