Not sure if this is what you had in mind but Permit.io has a JSON based Rest OpenAPI which generates Rego code for you directly onto Git. It also includes multiple UI to work the same API.
(Fair disclosure, I'm the founder of Permit.io)