Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created June 20, 2022 11:01
Show Gist options
  • Save ponelat/cca1f57c9198a8904fe3d95fd02028e8 to your computer and use it in GitHub Desktop.
Save ponelat/cca1f57c9198a8904fe3d95fd02028e8 to your computer and use it in GitHub Desktop.
asyncapi: '2.4.0'
info:
title: Petstore Kafka - Pets
version: '1.0.0'
description: |
A simple demo API based on a real implementation.
There are
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
test:
url: kafka.swagger.io:9092
protocol: kafka
description: Single demo Broker
defaultContentType: application/json
channels:
pets.added:
description: The topic for newly added Pets.
publish:
summary: New Pet added.
operationId: addPet
traits:
- $ref: '#/components/operationTraits/kafka'
message:
description: New Pets
payload:
type: object
examples:
- id: abc
name: Fido
components:
operationTraits:
kafka:
bindings:
kafka:
clientId: pets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment