Kapow! If you can script it, you can HTTP it.
https://kapow.readthedocs.io/en/stable/ (https://kapow.readthedocs.io/en/stable/)
https://github.com/BBVA/kapow (https://github.com/BBVA/kapow)
What's Kapow?
Say we have a nice cozy shell command that solves our problem. Kapow! lets us easily turn that into an HTTP API.