2021-08-25 04:44:27 +03:00
|
|
|
---
|
|
|
|
title: Redoc quickstart guide
|
|
|
|
---
|
|
|
|
|
|
|
|
# Redoc quickstart guide
|
|
|
|
|
|
|
|
This guide includes step-by-step instructions for how to get started using
|
|
|
|
Redoc to render your OpenAPI definition.
|
|
|
|
|
|
|
|
Redoc offers multiple options for rendering your OpenAPI definition.
|
|
|
|
You should select the option that best fits your needs.
|
|
|
|
|
|
|
|
The following options are supported:
|
|
|
|
|
2021-08-25 05:40:16 +03:00
|
|
|
- **[Live demo](https://redocly.github.io/redoc/):**
|
2021-08-25 04:44:27 +03:00
|
|
|
The live demo offers a fast way to see how your OpenAPI will render with Redoc.
|
2021-08-25 05:40:16 +03:00
|
|
|
- **[HTML element](./html.md):**
|
2021-08-25 04:44:27 +03:00
|
|
|
Using the HTML element works well for typical website deployments.
|
2021-08-25 05:40:16 +03:00
|
|
|
- **[React component](./react.md):**
|
2021-08-25 04:44:27 +03:00
|
|
|
Using the React component is an option for users with a React-based application.
|
2021-08-25 05:40:16 +03:00
|
|
|
- **[Docker image](./docker.md):**
|
2021-08-25 04:44:27 +03:00
|
|
|
Using the Docker image works in a container-based deployment.
|
2021-08-25 05:40:16 +03:00
|
|
|
- **[CLI](./cli.md):**
|
2021-08-25 04:44:27 +03:00
|
|
|
Using the CLI is an option for users who prefer to use a command-line interface.
|
|
|
|
|
|
|
|
## Before you start
|
|
|
|
|
|
|
|
You will need an OpenAPI definition. For testing purposes, you can use one of the following sample OpenAPI definitions:
|
|
|
|
- OpenAPI 3.0
|
|
|
|
- [Rebilly Users OpenAPI Definition](https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/users.yaml)
|
|
|
|
- [Swagger Petstore Sample OpenAPI Definition](https://petstore3.swagger.io/api/v3/openapi.json)
|
|
|
|
- OpenAPI 2.0
|
|
|
|
- [Thingful OpenAPI Definition](https://raw.githubusercontent.com/thingful/openapi-spec/master/spec/swagger.yaml)
|
|
|
|
- [Fitbit Plus OpenAPI Definition](https://raw.githubusercontent.com/TwineHealth/TwineDeveloperDocs/master/spec/swagger.yaml)
|
|
|
|
|
|
|
|
For more information on the OpenAPI specification, refer to the [Learning OpenAPI 3](https://redoc.ly/docs/resources/learning-openapi/)
|
|
|
|
section in the documentation.
|
|
|
|
|
|
|
|
## Live demo online
|
|
|
|
|
|
|
|
If you want to see how ReDoc will render your OpenAPI definition, you can try it out online at https://redocly.github.io/redoc/.
|
|
|
|
|
|
|
|
A version of the Swagger Petstore API is displayed by default. To test it with your own OpenAPI definition, enter the URL for your
|
2021-08-25 05:40:16 +03:00
|
|
|
definition and select the **TRY IT** button.
|