mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-08 19:06:06 +03:00
[PR #5591] [CLOSED] Implement functionality to export and import a book, along with its pages and chapters, as a ZIP file. #6523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BookStackApp/BookStack/pull/5591
Author: @LM-Nishant
Created: 4/25/2025
Status: ❌ Closed
Base:
development← Head:development📝 Commits (3)
c61ce8dImplement functionality to export a book, along with its pages and chapters, as a ZIP file.5fa728fDevelop functionality to import ZIP files. Create an API controller and define a route entry for handling the import process. Implement logic to read the list of files within the ZIP, process the directory structure, and automatically create associated pages, chapters, and books based on the ZIP file's contents.64da80cadded routes for zip export📊 Changes
5 files changed (+171 additions, -3 deletions)
View changed files
📝
app/Exports/Controllers/BookExportApiController.php(+17 -1)📝
app/Exports/Controllers/ChapterExportApiController.php(+11 -1)➕
app/Exports/Controllers/ImportApiController.php(+121 -0)📝
app/Exports/Controllers/PageExportApiController.php(+13 -1)📝
routes/api.php(+9 -0)📄 Description
While working on my project, I extensively utilized BookStack as a central platform for organizing and managing content. During development, I identified the need for additional functionality to export and import books, along with their pages and chapters, as ZIP files. This would streamline data portability and enable seamless integration of BookStack content into other workflows.
To address this requirement, I implemented the following features:
This contribution aims to enhance BookStack’s usability by improving content sharing and migration capabilities.
Let me know if you'd like adjustments or additional details!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.