In this developer-focused video I take you through the process of using consuming the BookStack REST API using NodeJS to perform some common actions such as creating pages and listing books.
► NodeJS: https://nodejs.org/en/ ► BookStack API Scipts Repo: https://github.com/BookStackApp/api-scripts ► Axios: https://github.com/axios/axios ► Nodemon: https://github.com/remy/nodemon ► BookStack Discord: https://discord.gg/ztkBqR2 ► Follow BookStack on Mastodon: https://fosstodon.org/@bookstack ► Follow BookStack on Twitter: https://twitter.com/bookstack_app ► Follow me on Mastodon: https://fosstodon.org/@danb
0:00 Intro & environment 2:45 First endpoint & API docs 5:32 API authentication & API tokens 9:40 Code cleanup & Axios instance use 14:46 Creating a page via POST request 18:48 Updating a page via PUT request 22:42 Deleting a page via DELETE request 27:24 API docs to read 30:19 API script examples repository 31:16 Getting support & outro
#nodejs #javascript #nodemon #axios #api #rest #opensource #selfhosted #documentation #wiki #bookstack #foss