Skip to main content
To render your OpenAPI definition using Redoc, use the following HTML code sample and replace the spec-url attribute with the URL or local file address to your definition.
Redoc requires an HTTP server to run locallyLoading local OpenAPI definitions is impossible without running a web server because of issues with same-origin policy and other security reasons. Refer to Running Redoc locally for more information.
For a more detailed explanation with step-by-step instructions and additional options for using Redoc, refer to the Redoc deployment guide.