Lexpedite / blawx

A user-friendly web-based tool for Rules as Code.
MIT License
105 stars 9 forks source link

Refactor front-end to use OpenAPI generator #323

Open Gauntlet173 opened 2 years ago

Gauntlet173 commented 2 years ago

We could theoretically avoid a lot of problems by auto-generating JS clients that correspond to the OpenAPI definition for the server. It would also make it possible to demonstrate how easily Blawx reasoning could be added to other front-end applications, particularly if we moved the definition of things like "answers" inside the object model.

Worth looking at the rest of the saaspegasus documentation for other ideas, too.

https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/apis/#working-with-the-api-client