mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 23:49:37 +00:00
00ae04e0bd
Also aligned books, shelves and chapters to return description content and some relations (where not breaking API) in create/update responses also so that information can be seen direct from that input in a request. API docs and tests not yet updated to match.
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"id": 16,
|
|
"name": "My own book",
|
|
"slug": "my-own-book",
|
|
"description": "This is my own little book",
|
|
"description_html": "<p>This is my own <em>little</em> book</p>",
|
|
"created_at": "2020-01-12T14:09:59.000000Z",
|
|
"updated_at": "2020-01-12T14:11:51.000000Z",
|
|
"created_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"updated_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"owned_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"default_template_id": null,
|
|
"contents": [
|
|
{
|
|
"id": 50,
|
|
"name": "Bridge Structures",
|
|
"slug": "bridge-structures",
|
|
"book_id": 16,
|
|
"created_at": "2021-12-19T15:22:11.000000Z",
|
|
"updated_at": "2021-12-21T19:42:29.000000Z",
|
|
"url": "https://example.com/books/my-own-book/chapter/bridge-structures",
|
|
"type": "chapter",
|
|
"pages": [
|
|
{
|
|
"id": 42,
|
|
"name": "Building Bridges",
|
|
"slug": "building-bridges",
|
|
"book_id": 16,
|
|
"chapter_id": 50,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2021-12-19T15:22:11.000000Z",
|
|
"updated_at": "2022-09-29T13:44:15.000000Z",
|
|
"url": "https://example.com/books/my-own-book/page/building-bridges"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 43,
|
|
"name": "Cool Animals",
|
|
"slug": "cool-animals",
|
|
"book_id": 16,
|
|
"chapter_id": 0,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2021-12-19T18:22:11.000000Z",
|
|
"updated_at": "2022-07-29T13:44:15.000000Z",
|
|
"url": "https://example.com/books/my-own-book/page/cool-animals",
|
|
"type": "page"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "Category",
|
|
"value": "Guide",
|
|
"order": 0
|
|
}
|
|
],
|
|
"cover": {
|
|
"id": 452,
|
|
"name": "sjovall_m117hUWMu40.jpg",
|
|
"url": "https://example.com/uploads/images/cover_book/2020-01/sjovall_m117hUWMu40.jpg",
|
|
"created_at": "2020-01-12T14:11:51.000000Z",
|
|
"updated_at": "2020-01-12T14:11:51.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"path": "/uploads/images/cover_book/2020-01/sjovall_m117hUWMu40.jpg",
|
|
"type": "cover_book",
|
|
"uploaded_to": 16
|
|
}
|
|
} |