Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set configuration values dynamically #19

Open
informatica92 opened this issue Jul 6, 2020 · 3 comments
Open

How to set configuration values dynamically #19

informatica92 opened this issue Jul 6, 2020 · 3 comments

Comments

@informatica92
Copy link

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

@CMCDragonkai
Copy link

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?

@informatica92
Copy link
Author

I createad a forked version in order to obtain this.
Take a look at:
https://github.com/informatica92/swagger-ui-py#why-this-fork

@PWZER
Copy link
Owner

PWZER commented Sep 27, 2021

@informatica92 You can see SwaggerUI Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants