docs/deployment/intro.md
Redoc offers multiple options for rendering your OpenAPI definition. You should select the option that best fits your needs.
The following options are supported:
You need an OpenAPI definition. For testing purposes, you can use one of the following sample OpenAPI definitions:
{% admonition type="info" name="OpenAPI specification" %} For more information on the OpenAPI specification, refer to the Learning OpenAPI 3 section in the documentation. {% /admonition %}
If you want to view your Redoc output locally, you can simulate an HTTP server.
If you have Python 3 installed, cd into your
project directory and run the following command:
python3 -m http.server
If you have Python 2 installed, cd into your
project directory and run the following command:
python -m SimpleHTTPServer 8000
The output after entering the command provides the local URL where the preview can be accessed.
To exit the preview, use control-C.
If you have Node.js installed, install http-server
using the following npm command:
npm install -g http-server
Then, cd into your project directory and run the following command:
http-server
The output after entering the command provides the local URL where the preview can be accessed.
To exit the preview, use control-C.