Skip to content

Commit

Permalink
Merge pull request #6 from SwissDataScienceCenter/search-sync
Browse files Browse the repository at this point in the history
Add asyncapi for stream of all events
  • Loading branch information
eikek authored Aug 27, 2024
2 parents d01a10b + 851d927 commit c3cdb7f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions v2/asyncapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
asyncapi: 3.0.0
info:
title: Search Sync Events
version: 0.0.1
servers:
redis:
host: renku-redis
protocol: redis
description: Renku Redis Instance
channels:
search.snc:
messages:
syncEvent:
payload:
schemaFormat: "application/vnd.apache.avro;version=1.9.0"
oneOf:
- $ref: './user/events/added.avsc#/UserAdded'
- $ref: './user/events/created.avsc#/UserUpdated'
- $ref: './user/events/removed.avsc#/UserRemoved'
- $ref: './group/events/added.avsc#/GroupAdded'
- $ref: './group/events/created.avsc#/GroupUpdated'
- $ref: './group/events/removed.avsc#/GroupRemoved'
- $ref: './group/events/member_added.avsc#/GroupMemberAdded'
- $ref: './group/events/member_added.avsc#/GroupMemberUpdated'
- $ref: './group/events/member_removed.avsc#/GroupMemberRemoved'
- $ref: './project/events/created.avsc#/ProjectCreated'
- $ref: './project/events/updated.avsc#/ProjectUpdated'
- $ref: './project/events/removed.avsc#/ProjectRemoved'
- $ref: './project/events/member_added.avsc#/ProjectMemberAdded'
- $ref: './project/events/member_updated.avsc#/ProjectMemberUpdated'
- $ref: './project/events/member_removed.avsc#/ProjectMemberRemoved'
traits:
- $ref: '#/components/messageTraits/headers'

components:
messageTraits:
headers:
payload:
type: object
properties:
id:
type: string
headers:
- $ref: '../header/headers.avsc#/Header'

0 comments on commit c3cdb7f

Please sign in to comment.