Skip to content

Sample

This page demonstrates embedding a local and a remote AsyncAPI spec, as well as overriding the config for a single component.

Local spec

Local AsyncAPI Spec
<asyncapi-component src="streetlights.yml"/>

Remote spec

Remote AsyncAPI Spec
<asyncapi-component src="https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka-asyncapi.yml"/>

Inline config override

Inline config override
<asyncapi-component src="streetlights.yml" config='{"show":{"info":false}}'/>