In case you weren't aware, there is now a
RESTful API on the dev branch of PressBooks. I think it will be useful for developers looking to build applications that can interact with public data about a book or a collection of books. It was inspired by Hugh's '
Books as API' and I hope that more people build applications that exploit this new API. If you do, post back here to let us know about it!
I've built the first application which uses the API and I've integrated it with the
PressBooks Textbook plugin — it searches chapter titles within an instance of PressBooks and allows the user to import those chapters into their own book. It has support for importing license and author information also, so attribution requirements can be more easily met. (Our primary use case is building open textbooks that are licensed with a creative commons license, so this is desirable behaviour within that remix context.)
If you keep your PB instance in sync with the dev branch on github then do a git pull, and checkout your new endpoint!
If you want to learn more about how the API works, I've included documentation:
thanks!
Brad