Created
December 20, 2023 09:52
-
-
Save mikaelvesavuori/c814d5df527213394b736b1fcc62eea1 to your computer and use it in GitHub Desktop.
AsyncAPI 3 request reply (HTTP) example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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