<OpenAPI />
A component to render OpenAPI specification files into EventCatalog.
tip
OpenAPI files can be great for your services. Remember you can version your services and all files that associate with it. This allows you to version your OpenAPI files with EventCatalog.
Support
The <OpenAPI/>
component is supported in domains, services, and all messages.
Usage
- Add your
openapi.yml
file to your folder- e.g
/events/MyEvent/openapi.yml
- e.g
- Include the
<OpenAPI/>
component inside the markdown- e.g
/events/MyEvent/index.md
- e.g
When you include the component three things happen:
- You get a section in your document with a link to the spec file
- A button is rendered in the sidebar for the document
- A new page is rendered loading the OpenAPI file.
Example
---
#event frontmatter
---
<OpenAPI/>
Output example in EventCatalog
New page that is created for your OpenAPI spec
Props
No configuration required.