Last active
August 11, 2020 07:06
-
-
Save kinlane/674994888f93d447c03e90de44982540 to your computer and use it in GitHub Desktop.
AsyncAPI For GitHub User Streaming Capablity
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 User Streaming Capablity | |
version: 1.0.0 | |
servers: | |
- url: 'https://streamdata.motwin.net/https://api.github.com/users/kinlane/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