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)
"owned_by": 1,
"updated_at": "2020-05-22T22:59:55.000000Z",
"created_at": "2020-05-22T22:59:55.000000Z",
- "id": 74,
- "book": {
- "id": 1,
- "name": "BookStack User Guide",
- "slug": "bookstack-user-guide",
- "description": "This is a general guide on using BookStack on a day-to-day basis.",
- "created_at": "2019-05-05T21:48:46.000000Z",
- "updated_at": "2019-12-11T20:57:31.000000Z",
- "created_by": 1,
- "updated_by": 1
- },
"tags": [
{
"name": "Category",
"updated_at": "2019-09-28T11:24:23.000000Z",
"created_by": 1,
"updated_by": 1,
- "owned_by": 1
+ "owned_by": 1,
+ "book_slug": "example-book"
},
{
"id": 2,
"updated_at": "2019-10-17T15:05:34.000000Z",
"created_by": 3,
"updated_by": 3,
- "owned_by": 3
+ "owned_by": 3,
+ "book_slug": "example-book"
}
],
"total": 40
"name": "Admin",
"slug": "admin"
},
+ "book_slug": "example-book",
"tags": [
{
"name": "Category",
"updated_by": 1,
"draft": false,
"revision_count": 2,
- "template": false
+ "template": false,
+ "book_slug": "example-book"
},
{
"id": 7,
"updated_by": 3,
"draft": false,
"revision_count": 1,
- "template": false
+ "template": false,
+ "book_slug": "example-book"
}
]
}
\ No newline at end of file
"created_by": 1,
"updated_by": 1,
"owned_by": 1,
- "book": {
- "id": 1,
- "name": "BookStack User Guide",
- "slug": "bookstack-user-guide",
- "description": "This is a general guide on using BookStack on a day-to-day basis.",
- "created_at": "2019-05-05T21:48:46.000000Z",
- "updated_at": "2019-12-11T20:57:31.000000Z",
- "created_by": 1,
- "updated_by": 1
- },
+ "book_slug": "bookstack-demo-site",
"tags": [
{
"name": "Category",
"updated_at": "2020-07-04T15:50:58.000000Z",
"created_by": 1,
"updated_by": 1,
- "owned_by": 1
+ "owned_by": 1,
+ "book_slug": "example-book"
},
{
"id": 2,
"updated_at": "2019-06-06T12:03:04.000000Z",
"created_by": 1,
"updated_by": 1,
- "owned_by": 1
+ "owned_by": 1,
+ "book_slug": "example-book"
},
{
"id": 3,
"updated_at": "2019-12-18T21:56:52.000000Z",
"created_by": 1,
"updated_by": 1,
- "owned_by": 1
+ "owned_by": 1,
+ "book_slug": "example-book"
}
],
"total": 322