{{< openapi >}}

Description#


The openapi shortcode allows to display an OpenAPI documentation associated to a service.

Parameters#


NameType(named/positional)Description
sourcenamedSource of the OpenAPI documentation.
NB: The source can be either a local path or an URL.

Examples#


MarkdownRendering
{{</* openapi
  source="openapi/example.yaml"
*/>}}
Loading
{{</* openapi
  source="https://petstore.swagger.io/v2/swagger.json"
*/>}}
Loading