improved-initiative
improved-initiative copied to clipboard
HTTP API Documentation
I'm currently attempting to launch Improved Initiative from an adhoc local HTML site I use for DM notes. I've found mention of API endpoints (cynicaloptimist/improved-initiative#46, cynicaloptimist/improved-initiative#231), but no documentation. Are these endpoints meant for general usage at all?
Did you get any details on this one?
@JaiSpicer No, I ended up deciding to build my own adhoc initiative tracker. It's less feature rich than Improved Initiative, but in some ways it suits my purposes better.
There's no dedicated documentation for this, but there is an example of a minimal POST request that can launch an encounter similar to what Kobold Fight Club does: https://github.com/cynicaloptimist/improved-initiative/blob/development/test-post.html As long as the payload conforms to the StatBlock type, it should work as expected; you can include any supported parts of the StatBlock: https://github.com/cynicaloptimist/improved-initiative/blob/development/common/StatBlock.ts
Thanks @cynicaloptimist ! Any thoughts about supporting pulling in data from it (e.g. lists of encounters, characters, etc)? I could probably achieve this with a Chrome plugin. Or, perhaps I could open a PR that allowed for some kind of extension system for II. It could allow for adding an extension from another site which it loads in a protected iframe and then provide an api object to the iframe to allow it to pull in the user's info.
Nothing pressing, just brainstorming ideas.
I likely won't make the time to work on this API any time soon. Thanks for the suggestions though!