Can we support multiple versions of APIs?
Is there some way to already do this?
@gauravmokhasi you can have any switcher outside the redoc and use Redoc.init method to switch files.
Check example here: https://github.com/Rebilly/ReDoc/blob/master/demo/examples/multiple-apis/index.html
There is no plan to add this into ReDoc core.
That example file was removed as part of the react rewrite and is no longer in the master branch. You can still view it at: https://github.com/Rebilly/ReDoc/blob/039bbdb585f92a7e7c5d38ea5776c42d5d39480e/demo/examples/multiple-apis/index.html
Thanks. @RomanHotsiy, but this only shows the first API and no option to select the other versions. Please assist.
please provide this on the next major version
Most helpful comment
That example file was removed as part of the react rewrite and is no longer in the master branch. You can still view it at: https://github.com/Rebilly/ReDoc/blob/039bbdb585f92a7e7c5d38ea5776c42d5d39480e/demo/examples/multiple-apis/index.html