/roll-api

An API to roll RPG dice

Primary LanguageRustMIT LicenseMIT

Power VTT Roll API

Roll RPG dice. Used inside of Power VTT.

Routes

GET /v1/:command

Roll a single type of die. Use TTML syntax to extend roll functionality.

Examples:

# Roll a single d20
curl -H "Content-Type: application/json" https://roll.poweredvtt.com/v1/1d20

# Reroll anything below a 2
curl -H "Content-Type: application/json" https://roll.poweredvtt.com/v1/4d8rr2

# Set min/min of a die
curl -H "Content-Type: application/json" https://roll.poweredvtt.com/v1/1d100min2max99

# Add a comment
curl -H "Content-Type: application/json" 'https://roll.poweredvtt.com/v1/1d20 "Rolling for gold!"'

Roll Your Own

Looking to run the roll API locally? You will need Rust (nightly).

cargo +nightly build

You can access the server at http://localhost:1337/.

License

MIT © 2017 Unicorn Heart Club LLC