OfficiumDivium¶
OfficiumDivinum is a modern re-write of https://divinumofficium.com. It provides a REST-like (hopefully RESTful) API to get the office and the mass in html, serialised json, latex or gabc, suitable not just for reading but also for singing.
We provide an API and a demonstration web app: you go and build the rest!
Using the Web API¶
Get tomorrow’s martyrology as json:
curl -H "Accept: application/json" --request GET "http://2e0byo.pythonanywhere.com:/martyrology"
Get the hymn from today’s Prime in latin in html:
curl -H "Accept: text/html" --request GET "http://2e0byo.pythonanywhere.com:/office?office=prime&lang=latin&part=hymn"