Skip to main content

AsyncAPI

With Port, you can import and display AsyncAPI specification files as Swagger UI tabs.

By using a special Async API Blueprint property, Port will display the Swagger UI matching the spec file provided in the Specific entity page.

Definitionโ€‹

When using the URL format, Port will query the provided URL for the AsyncAPI spec and expects a JSON AsyncAPI spec

note

When using URL for the async-api display please make sure that your server allows cross-origin (CORS) requests from app.getport.io

{
"myAsyncApi": {
"title": "My Async API",
"type": "string",
"format": "url",
"spec": "async-api",
"description": "async-api Prop"
}
}

Exampleโ€‹

Here is how the Swagger tab in the specific entity page appears when an AsyncAPI spec is provided:

AsyncAPI Example

note

Only AsyncAPI versions 2.0.0 up to 2.4.0 are supported at the moment.