oax
oax copied to clipboard
Static HTML?
Hi -
I would like to try this, but my requirements limit to using static HTML for swagger-ui's. So, the question is, can this run without server-side code/files, where the URL to swagger-json would be fed to client-side code in some standard way, e.g. query or via some customizable script in home-page (much like your first project: https://github.com/darosh/angular-swagger-ui-material)?
I did run npm-install, hoping that such files would be generated, as I didn't spot them in the source either.
Thanks. Hari
Hi @hlubovac!
This is still work in progress so there is no dist or info. Yes it is static client side as the 1st project was.
For quick try you can click the top left pen icon and paste url of your spec in edit tab in the demo or use url query param https://darosh.github.io/oax/#/?url=
.
There will be customization available via something like global variable window.OAX.cfg
later but it is currently disabled. Second option will be custom build using rcfile allowing to setup and exclude some features at compile time for smaller build.
For the static dist you can grab files directly from gh-pages branch.