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

Multiple instances of ReDoc on one server #163

Closed
arodoni opened this issue Dec 12, 2016 · 2 comments
Closed

Multiple instances of ReDoc on one server #163

arodoni opened this issue Dec 12, 2016 · 2 comments
Labels

Comments

@arodoni
Copy link

arodoni commented Dec 12, 2016

We are considering a deploying a private API reference for Beta customers and keep that API separate from our public REST API.

Is it possible to run 2 or more instances of ReDoc on one server?

Thanks!

@RomanHotsiy
Copy link
Member

RomanHotsiy commented Dec 13, 2016

@arodoni yes this is possible.
First of all ReDoc is pure client-side application so it does not run on the server.

The simplest and recommended solution is just to setup 2 different pages each with ReDoc instance pointing to another swagger spec.

Alternatively, ReDoc supports dynamic spec urls as on our demo page so you can end up using only one page.

Let me know if I answered your question

@arodoni
Copy link
Author

arodoni commented Dec 13, 2016

Thank you for the quick response! I got it to work with 2 HTML and 2 swagger specs.

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

No branches or pull requests

2 participants