]> BookStack Code Mirror - bookstack/blob - dev/api/responses/search-all.json
respective book and chapter structure added.
[bookstack] / dev / api / responses / search-all.json
1 {
2     "data": [
3         {
4             "id": 84,
5             "book_id": 1,
6             "slug": "a-chapter-for-cats",
7             "name": "A chapter for cats",
8             "created_at": "2021-11-14T15:57:35.000000Z",
9             "updated_at": "2021-11-14T15:57:35.000000Z",
10             "type": "chapter",
11             "url": "https://example.com/books/my-book/chapter/a-chapter-for-cats",
12             "book": {
13                 "id": 1,
14                 "name": "Cats",
15                 "slug": "cats"
16             },
17             "preview_html": {
18                 "name": "A chapter for <strong>cats</strong>",
19                 "content": "...once a bunch of <strong>cats</strong> named tony...behaviour of <strong>cats</strong> is unsuitable"
20             },
21             "tags": []
22         },
23         {
24             "name": "The hows and whys of cats",
25             "id": 396,
26             "slug": "the-hows-and-whys-of-cats",
27             "book_id": 1,
28             "chapter_id": 75,
29             "draft": false,
30             "template": false,
31             "created_at": "2021-05-15T16:28:10.000000Z",
32             "updated_at": "2021-11-14T15:56:49.000000Z",
33             "type": "page",
34             "url": "https://example.com/books/my-book/page/the-hows-and-whys-of-cats",
35             "book": {
36                 "id": 1,
37                 "name": "Cats",
38                 "slug": "cats"
39             },
40             "chapter": {
41                 "id": 84,
42                 "name": "A chapter for cats",
43                 "slug": "a-chapter-for-cats"
44             },
45             "preview_html": {
46                 "name": "The hows and whys of <strong>cats</strong>",
47                 "content": "...people ask why <strong>cats</strong>? but there are...the reason that <strong>cats</strong> are fast are due to..."
48             },
49             "tags": [
50                 {
51                     "name": "Animal",
52                     "value": "Cat",
53                     "order": 0
54                 },
55                 {
56                     "name": "Category",
57                     "value": "Top Content",
58                     "order": 0
59                 }
60             ]
61         },
62         {
63             "name": "How advanced are cats?",
64             "id": 362,
65             "slug": "how-advanced-are-cats",
66             "book_id": 13,
67             "chapter_id": 73,
68             "draft": false,
69             "template": false,
70             "created_at": "2020-11-29T21:55:07.000000Z",
71             "updated_at": "2021-11-14T16:02:39.000000Z",
72             "type": "page",
73             "url": "https://example.com/books/my-book/page/how-advanced-are-cats",
74             "book": {
75                 "id": 1,
76                 "name": "Cats",
77                 "slug": "cats"
78             },
79             "chapter": {
80                 "id": 84,
81                 "name": "A chapter for cats",
82                 "slug": "a-chapter-for-cats"
83             },
84             "preview_html": {
85                 "name": "How advanced are <strong>cats</strong>?",
86                 "content": "<strong>cats</strong> are some of the most advanced animals in the world."
87             },
88             "tags": []
89         }
90     ],
91     "total": 3
92 }