This Flutter/Dart script demonstrates the usage of the BookStackAPI library to interact with a BookStack instance. The script showcases various functions available in the BookStackAPI library, allowing you to perform operations such as fetching books, chapters, and pages, creating new content, updating existing content, and more.
Check out Bookstack: LINK TO BOOKSTACK
-
Clone this repository to your local machine:
git clone https://github.com/chris-devel0per/FlutterBookstackApiExample.git cd FlutterBookstackApiExample
-
Install Flutter and Dart if you haven't already. Follow the official installation guide for your platform.
-
Install dependencies:
flutter pub get
-
Configure the BookStackAPI settings:
Open the
lib/controller/server_info.dart
file and provide your BookStack instance's base URL, API token, and other configuration details. -
Run the script:
flutter run
The script demonstrates how to authenticate with the BookStack API using your API token and make authenticated requests.
You can use the library to fetch a list of books, chapters within a book, and pages within a chapter. The script showcases how to retrieve this hierarchical content structure.
Learn how to create new books, chapters, and pages using the BookStackAPI library. The script includes examples of creating various types of content.
See how to update existing content such as book titles, chapter names, and page content.
The script demonstrates how to delete books, chapters, and pages. Be cautious when using this functionality, as it permanently removes content.
Learn how to perform search queries using the BookStackAPI library. The script showcases searching for books, chapters, and pages based on keywords.
Learn how to interact with the Attachments
Learn how to interact with the Image-Gallery
Learn how to manage users and Roles
These methods are !!!NOT!!! supported:
Recycle-Bin>restore
Recycle-Bin>destroy
Content-permissions>update
For more detailed information about the available functions and classes in the BookStackAPI library, refer to the official documentation provided with the library. You can find it here.
Contributions to this script and the associated documentation are welcome. If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.
This script is released under the MIT License.
Happy coding! If you have any questions or need assistance, feel free to reach out to the author at Discord (skiddybison5924).