Redocly API Block - Default

Display interactive API documentation from OpenAPI specification files.

Syntax

<RedoclyAPIBlock src="path/to/openapi.yaml" />

Parameters

Default Settings

Examples

Relative path (YAML under /src/pages): From a page at api/reference/index.md, referencing assets/openapi.yaml:

<RedoclyAPIBlock src="../../assets/openapi.yaml" />

Static folder (pathPrefix format): For static/petstore.json with pathPrefix my-product:

<RedoclyAPIBlock src="/my-product/petstore.json" />
data-src=../../assets/openapi.yaml