Skip to content

Importing an AsyncAPI document

AsyncAPI describes event-driven APIs the way OpenAPI describes REST APIs. Restorm turns it into messaging requests.

File ▸ Import (Ctrl+I) then the document, in YAML or in JSON.

ElementWhat Restorm makes of it
Each channelA publish request and a subscribe request, tagged as such
The server’s protocolThe type of request produced (see below)
The messages’ schemaA sample payload built from the schema
DescriptionsThe API documentation

The requests are grouped into one folder per protocol.

AsyncAPI protocolRestorm request produced
mqtt, mqttsMQTT, with an mqtt:// URL prefix
socketio, socket.ioSocket.IO
Everything elseWebSocket, with a ws:// URL prefix

AsyncAPI is one of the re-syncable formats. See Updating from the source.