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

Hand Redoc an OpenAPI JSON object for initiation? #224

Closed
bioball opened this issue Mar 6, 2017 · 1 comment
Closed

Hand Redoc an OpenAPI JSON object for initiation? #224

bioball opened this issue Mar 6, 2017 · 1 comment

Comments

@bioball
Copy link
Contributor

bioball commented Mar 6, 2017

Rather than giving Redoc a swagger to fetch from, I'd like to be able to hand it the JSON directly. Something like:

const swaggerJson = getSwaggerJsonSomehow();
Redoc.init(swaggerJson);

The reason is that I may want to create documentation for protected resources, and may want the documentation json itself to be behind a protected endpoint too.

@bioball bioball changed the title Hand Redoc an OpenAPI JSON object? Hand Redoc an OpenAPI JSON object for initiation? Mar 6, 2017
@bioball
Copy link
Contributor Author

bioball commented Mar 10, 2017

Nice, thanks!

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

No branches or pull requests

2 participants