Redoc CE offers multiple ways of rendering your OpenAPI description. Choose a method that best suits your needs.
Redoc CE supports the following rendering methods:
- Live demo: The live demo offers a fast way to see how your OpenAPI renders with Redoc CE. A version of the Redocly Museum API is displayed by default. To test it with your own OpenAPI description, enter the URL for your description and select Try it.
- HTML element: Using the HTML element works well for typical website deployments.
- React component: Using the React component is an option for users with a React-based application.
- Docker image: Using the Docker image works in a container-based deployment.
- Redocly CLI: Using the Redocly CLI is an option for users who prefer to use a command-line interface.
To work with Redoc CE, make sure you have:
- an OpenAPI description file
- a utility that simulates an HTTP server
You need an OpenAPI description. For testing purposes, you can use one of the following sample OpenAPI descriptions:
- OpenAPI 3.0
- OpenAPI 2.0
To view your Redoc CE output locally, you can simulate an HTTP server.
To install an HTTP server with Python:
Python 3
cdinto your project directory.- run the following command:
python3 -m http.serverPython 2
cdinto your project directory.- run the following command:
python -m SimpleHTTPServer 8000The output provides the local URL where you can access the preview.
To exit the preview, press control+C.
To install http-server with Node.js:
- In your CLI, in your project directory, run the the following command:
npx http-server- After the installation completes, run:
http-serverThe output provides the local URL where you can access the preview.
To exit the preview, press control+C.
- Redoc CE quickstart guide - Start working with Redoc CE
- Configure Redoc CE - Explore Redoc CE's configuration options
- Learning OpenAPI 3 - Learn the OpenAPI 3.x specification