-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 any option to load multiple swaggers in SpecUrl #605
Comments
You can't load multiple swagger files at once. ReDoc doesn't support this. Although, you can add some buttons/links/dropdown to change You can also provide different Closing this issue. |
Thanks @RomanGotsiy for the quick response. |
@binobose - Did you find a clean way to get various swaggers to work? A central source for seeing all documentation for all of our microservices is what we really need. Ability to pass in multiple specUrls would be amazing, but modifying app with dropdown/links also would work fine. |
This is a feature request that has come up again and again (search the issues for 'multiple') e.g. #442 or #278. Most of them got closed pretty quickly as out-of-scope. That's why I didn't bother creating another one. I have the feeling at this point not even a PR to that effect would be very welcome. I agree with @J-Gonzalez that specifying a const ui = SwaggerUIBundle({urls: [{url: "foo.yaml",name: "Foo"},{url: "bar.yaml",name: "Bar"}], etc});
...
window.ui = ui; |
@binobose I have create a docker image which fix your problem: https://hub.docker.com/r/volbrene/redoc |
@volbrene Interesting, where's the code to that? |
At the moment the code is in my private gitlab. |
Oh, ok. Then this - from your Docker Hub page - is going to be a bit difficult 😜
|
Huch sorry, I have remove this part. Thanks for this info 👌 |
Doing the opposite (making the repo public) would have been more helpful...Your choice of course but I would have liked to contribute new features. |
Which feature for example? :) |
We obviously don't have the same philosophy with regards to using and creating (open-source) software. This isn't the right place to discuss them. So, never mind. |
@marcelstoer want to share how you ended up solving this issue? running into the same issue right now. @volbrene's solution is fine but i would like to do this with yamls that are not hosted on the public internet, which might mean hacking/building on top of his image |
I didn't solve it yet. Doing this with a Docker image is certainly a good approach but building something closed-source around an open-source project certainly isn't. |
@volbrene will be helpful if you can share the code to your image! |
Hello guys, I have public my code: https://github.com/volbrene/redoc Hope it would be helpfull. |
Thanks @volbrene! Do you know if this works with local yaml files? if I package my yamls with the docker image, would that work out of the box? |
@davinchia I will use the offical redoc implementation. It hope this ticket helps: #149 |
Hi, I am loading the Swagger in the below format,
can anyone please let me know if there's any option to load multiple Swaggers in this context.
The text was updated successfully, but these errors were encountered: