rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

How to provide a dropdown with predefined list of OpenAPI Specs #82

Closed mikemadisonweb closed 5 years ago

mikemadisonweb commented 5 years ago

Hello, thank you for the awesome package. I have a question, is there some plans to add a feature to provide a list of the specifications to the input rather then one specification url. We have a lot of services in our company and I'm building a centralized documentation tool for them. Rapidoc looks like a perfect fit for this. What do you think, what would be the best way to inject the predefined list of specifications to the input, ideally with the autocomplete feature (like select2 plugin for example)? I think such a feature could be invaluable for others as well.

mrin9 commented 5 years ago

You have enough ways to build this functionality the way you want to, with minimal scripting in your html

here is an example showing how various attributes can be changed. the code for it is here https://github.com/mrin9/RapiDoc/blob/master/docs/examples/example100.html

feel free to reopen it, if you still unable to make this work on your side or have any other issues/doubts