Adding specifications to services
Adding an OpenAPI specification file​
eventcatalog@2.6.0
Services in EventCatalog allow you to render OpenAPI specification files or schemas on the page.
To add an OpenAPI file to your service you will need to include the file itself inside the service directory.
/services/{Service Name}/openapi.yml
- (example
/services/Orders/openapi.yml
)
- (example
Next add the specifications frontmatter API to your service.
---
specifications:
openapiPath: openapi.yml
---
This will render a new badge on your page and a new button to load the OpenAPI page for your service.
Adding an AsyncAPI specification files​
eventcatalog@2.6.0
Services in EventCatalog allow you to render AsyncAPI specifications files.
To add an AsyncAPI file to your service you will need to include the file itself inside the service directory.
/services/{Service Name}/asyncapi.yml
- (example
/services/Orders/asyncapi.yml
)
- (example
Next add the specifications frontmatter API to your service.
---
specifications:
asyncapiPath: asyncapi.yml
---
This will render a new badge on your page and a new button to load the AsyncAPI page for your service.
Did you know you can use the AsyncAPI generator to generate your EventCatalog? Check out the AsyncAPI integration for more information.