-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Is there a way to set different apidoc.json #719
Comments
I also stumbled the same problem generating docs for different environments.
Also, according to documentation, there is a config switch, which might work as well, but you'll end up copy-pasting pretty much the whole file
|
Why do I need to create directory for each Something like |
I agree that the |
can it use the dotenv lib? We are placing our generated docs into a docker image that can be pushed out to different environments. having dotenv, we can pass in the url/sampleUrl when we startup the docker container. |
@javajoe1 Dotenv sounds like a good idea. Please feel free to submit a PR for this feature :) |
I found a solution to specify sampleUrl or any other apidocjson setting as per our application environment.
now everytime you want to create apidoc with any environment ,just execute it with following command -
by this,it will create apidoc with dynamic environment. |
Hi!
Working in localhost env, we want to set 'sampleUrl' as the localhost host, to test more easily. While we still need to maintain it frequently, so it's not a good idea to put it in .gitignore.
How about providing an option to set the path for apidoc.json?
Thanks!
The text was updated successfully, but these errors were encountered: