swagger-ui-py
swagger-ui-py copied to clipboard
How to set configuration values dynamically
Hi all, I was wondering is, using this api, it would be possible to set some configuration value dynamically. It would be great thinking about the API version for example. In this way we can leave the config file as it is but the version displayed would change automatically according to git tag name or environment variables
It seems like one would have to generate the openapi.yaml file somehow. And then route that. One could even add a /openapi.yaml
route to the web server, and serve that as the actual config file?
I createad a forked version in order to obtain this. Take a look at: https://github.com/informatica92/swagger-ui-py#why-this-fork
@informatica92 You can see SwaggerUI Configuration