How to use the Redoc React component- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Connect to CursorInstall MCP server on Cursor
- Connect to VS CodeInstall MCP server on VS Code
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Connect to CursorInstall MCP server on Cursor
- Connect to VS CodeInstall MCP server on VS Code
Install the following dependencies required by Redoc:
reactreact-dommobxstyled-componentscore-js
If you have npm installed, you can install these dependencies using the following command:
npm i react react-dom mobx styled-components core-jsimport { RedocStandalone }from 'redoc';You can either link to your OpenAPI definition with a URL, using the following format:
<RedocStandalone definitionUrl="url/to/your/spec"/>Or you can pass your OpenAPI definition as an object, using the following format:
<RedocStandalone spec={/* spec as an object */}/>Options can be passed into theRedocStandalone component to alter how it renders.
For example:
<RedocStandalone definitionUrl="https://redocly.github.io/redoc/museum.yaml" options={{ hideLoading:true, sanitize:true, showExtensions:true, }}/>For more information on configuration options, refer to theConfiguration options for openapi section of the documentation. Options that are available for Redoc CE are annotated with: "Supported in Redoc CE.".