Last active
August 11, 2020 07:06
-
-
Save kinlane/24cb9a1c43a766a3c95f3645a59364b4 to your computer and use it in GitHub Desktop.
AsyncAPI For Github Org Streaming Capability
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: 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