mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
ccfe38e963
Remove the book attribute in responses because it is never returned by the API. Currently, Chapters Create does not return book_slug! (The example response is consistent with the inconsistent API behavior)
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"data": [
|
|
{
|
|
"id": 1,
|
|
"book_id": 1,
|
|
"chapter_id": 1,
|
|
"name": "How to create page content",
|
|
"slug": "how-to-create-page-content",
|
|
"priority": 0,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2019-05-05T21:49:58.000000Z",
|
|
"updated_at": "2020-07-04T15:50:58.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"owned_by": 1,
|
|
"book_slug": "example-book"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"book_id": 1,
|
|
"chapter_id": 1,
|
|
"name": "How to use images",
|
|
"slug": "how-to-use-images",
|
|
"priority": 2,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2019-05-05T21:53:30.000000Z",
|
|
"updated_at": "2019-06-06T12:03:04.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"owned_by": 1,
|
|
"book_slug": "example-book"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"book_id": 1,
|
|
"chapter_id": 1,
|
|
"name": "Drawings via draw.io",
|
|
"slug": "drawings-via-drawio",
|
|
"priority": 3,
|
|
"draft": false,
|
|
"template": false,
|
|
"created_at": "2019-05-05T21:53:49.000000Z",
|
|
"updated_at": "2019-12-18T21:56:52.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"owned_by": 1,
|
|
"book_slug": "example-book"
|
|
}
|
|
],
|
|
"total": 322
|
|
} |