]> BookStack Code Mirror - bookstack/blob - dev/api/responses/books-read.json
ZIP Imports: Added API examples, finished testing
[bookstack] / dev / api / responses / books-read.json
1 {
2   "id": 16,
3   "name": "My own book",
4   "slug": "my-own-book",
5   "description": "This is my own little book",
6   "description_html": "<p>This is my own <em>little</em> book</p>",
7   "created_at": "2020-01-12T14:09:59.000000Z",
8   "updated_at": "2020-01-12T14:11:51.000000Z",
9   "created_by": {
10     "id": 1,
11     "name": "Admin",
12     "slug": "admin"
13   },
14   "updated_by": {
15     "id": 1,
16     "name": "Admin",
17     "slug": "admin"
18   },
19   "owned_by": {
20     "id": 1,
21     "name": "Admin",
22     "slug": "admin"
23   },
24   "default_template_id": null,
25   "contents": [
26     {
27       "id": 50,
28       "name": "Bridge Structures",
29       "slug": "bridge-structures",
30       "book_id": 16,
31       "created_at": "2021-12-19T15:22:11.000000Z",
32       "updated_at": "2021-12-21T19:42:29.000000Z",
33       "url": "https://example.com/books/my-own-book/chapter/bridge-structures",
34       "type": "chapter",
35       "pages": [
36         {
37           "id": 42,
38           "name": "Building Bridges",
39           "slug": "building-bridges",
40           "book_id": 16,
41           "chapter_id": 50,
42           "draft": false,
43           "template": false,
44           "created_at": "2021-12-19T15:22:11.000000Z",
45           "updated_at": "2022-09-29T13:44:15.000000Z",
46           "url": "https://example.com/books/my-own-book/page/building-bridges"
47         }
48       ]
49     },
50     {
51       "id": 43,
52       "name": "Cool Animals",
53       "slug": "cool-animals",
54       "book_id": 16,
55       "chapter_id": 0,
56       "draft": false,
57       "template": false,
58       "created_at": "2021-12-19T18:22:11.000000Z",
59       "updated_at": "2022-07-29T13:44:15.000000Z",
60       "url": "https://example.com/books/my-own-book/page/cool-animals",
61       "type": "page"
62     }
63   ],
64   "tags": [
65     {
66       "name": "Category",
67       "value": "Guide",
68       "order": 0
69     }
70   ],
71   "cover": {
72     "id": 452,
73     "name": "sjovall_m117hUWMu40.jpg",
74     "url": "https://example.com/uploads/images/cover_book/2020-01/sjovall_m117hUWMu40.jpg",
75     "created_at": "2020-01-12T14:11:51.000000Z",
76     "updated_at": "2020-01-12T14:11:51.000000Z",
77     "created_by": 1,
78     "updated_by": 1,
79     "path": "/uploads/images/cover_book/2020-01/sjovall_m117hUWMu40.jpg",
80     "type": "cover_book",
81     "uploaded_to": 16
82   }
83 }