Chapter API endpoint doesn't return the field book_slug #4395

Closed
opened 2026-02-05 08:47:45 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ayrtonnadgel on GitHub (Jan 11, 2024).

Describe the Bug

Chapter API endpoint doesn't return the field book_slug.

Steps to Reproduce

  1. Make a GET request to /api/chapters
  2. Choose any id of any chapter
  3. Make a second GET request to /api/chapters/{id}

Expected Behaviour

The field book_slug is returned in the response, as shown in the documentation.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.12

Originally created by @ayrtonnadgel on GitHub (Jan 11, 2024). ### Describe the Bug Chapter API endpoint doesn't return the field `book_slug`. ### Steps to Reproduce 1. Make a GET request to `/api/chapters` 2. Choose any `id` of any chapter 3. Make a second GET request to `/api/chapters/{id}` ### Expected Behaviour The field `book_slug` is returned in the response, as shown in the documentation. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v23.12
OVERLORD added the 🐛 Bug label 2026-02-05 08:47:45 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 16, 2024):

Apologies @ayrtonnadgel, and thanks for reporting.
This has now been added back in adf1806fea, with tests update to cover, and will be part of the next patch release due soon.

@ssddanbrown commented on GitHub (Jan 16, 2024): Apologies @ayrtonnadgel, and thanks for reporting. This has now been added back in adf1806feaa541f7ff627ba83278ea7dd2fd7a04, with tests update to cover, and will be part of the next patch release due soon.
Author
Owner

@ayrtonnadgel commented on GitHub (Jan 17, 2024):

Apologies @ayrtonnadgel, and thanks for reporting. This has now been added back in adf1806, with tests update to cover, and will be part of the next patch release due soon.

Thanks. 🙇‍♂️

@ayrtonnadgel commented on GitHub (Jan 17, 2024): > Apologies @ayrtonnadgel, and thanks for reporting. This has now been added back in [adf1806](https://github.com/BookStackApp/BookStack/commit/adf1806feaa541f7ff627ba83278ea7dd2fd7a04), with tests update to cover, and will be part of the next patch release due soon. Thanks. 🙇‍♂️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4395