Skip to content

Instantly share code, notes, and snippets.

@mikaelvesavuori
Created December 20, 2023 09:52
Show Gist options
  • Save mikaelvesavuori/c814d5df527213394b736b1fcc62eea1 to your computer and use it in GitHub Desktop.
Save mikaelvesavuori/c814d5df527213394b736b1fcc62eea1 to your computer and use it in GitHub Desktop.
AsyncAPI 3 request reply (HTTP) example.
asyncapi: 3.0.0
info:
title: Hello world using request/reply
version: 1.0.0
description: Hello world example using request/reply
channels:
hello:
address: /hello
messages:
hello:
$ref: '#/components/messages/hello'
helloResponse:
#address: /hello
address: null
messages:
helloResponse:
$ref: '#/components/messages/helloResponse'
operations:
hello:
action: send
bindings:
http:
method: GET
bindingVersion: '0.2.0'
channel:
$ref: '#/channels/hello'
reply:
channel:
$ref: '#/channels/helloResponse'
components:
messages:
hello:
payload:
type: 'null'
helloResponse:
payload:
type: string
const: 'Hello world!'
additionalProperties: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment