Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kinlane/24cb9a1c43a766a3c95f3645a59364b4 to your computer and use it in GitHub Desktop.
Save kinlane/24cb9a1c43a766a3c95f3645a59364b4 to your computer and use it in GitHub Desktop.
AsyncAPI For Github Org Streaming Capability
asyncapi: 1.2.0
info:
title: AsyncAPI For Github Org Streaming Capability
version: 1.0.0
servers:
- url: 'https://streamdata.motwin.net/https://api.github.com/orgs/api-evangelist/events'
scheme: https
schemeVersion: '1.1'
variables:
X-Sd-Token: {sdio_token}
security:
- access_token: []
stream:
framing:
type: chunked
delimiter: \r\n
read:
- $ref: '#/components/messages/events'
- $ref: '#/components/messages/heartbeat'
components:
securitySchemes:
token:
type: access_token
name: token
in: query
messages:
events:
summary: "The events."
payload:
type: object
properties:
event:
$ref: "#/components/schemas/event"
heartbeat:
summary: 'Its purpose is to keep the connection alive.'
payload: {type: string, enum: ["\r\n"]}
schemas:
event:
type: object
properties:
id:
type: string
type:
type: string
actor:
type: object
properties:
id:
type: integer
login:
type: string
display_login:
type: string
gravatar_id:
type: string
url:
type: string
avatar_url:
type: string
repo:
type: object
properties:
id:
type: integer
name:
type: string
url:
type: string
payload:
type: object
properties:
action:
type: string
public:
type: boolean
created_at:
type: string
org:
type: object
properties:
id:
type: integer
login:
type: string
gravatar_id:
type: string
url:
type: string
avatar_url:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment