-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathasyncapi.yaml
139 lines (139 loc) · 2.7 KB
/
asyncapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
asyncapi: 3.0.0
info:
title: Test HTTP in glee using httpbin.org
version: 1.0.0
description: This app is a test app. it will send requests to httpbin.org to see if glee works well with http protocol.
servers:
httpbin.org:
host: 'httpbin.org'
protocol: https
local-trigger:
host: 'localhost:3000'
protocol: http
channels:
TRIGGER:
address: /
servers:
- $ref: '#/servers/local-trigger'
messages:
string:
$ref: "#/components/messages/string"
empty:
$ref: "#/components/messages/empty"
DELETE:
address: /delete
servers:
- $ref: '#/servers/httpbin.org'
GET:
address: /get
servers:
- $ref: '#/servers/httpbin.org'
POST:
address: /post
servers:
- $ref: '#/servers/httpbin.org'
PATCH:
address: /patch
servers:
- $ref: '#/servers/httpbin.org'
PUT:
address: /put
servers:
- $ref: '#/servers/httpbin.org'
operations:
sendTrigger:
action: send
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
receiveTrigger:
reply:
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
channel:
$ref: '#/channels/TRIGGER'
action: receive
bindings:
http:
method: POST
sendDELETE:
channel:
$ref: '#/channels/DELETE'
action: send
bindings:
http:
method: DELETE
receiveDELETE:
channel:
$ref: '#/channels/DELETE'
action: receive
sendGET:
channel:
$ref: '#/channels/GET'
action: send
bindings:
http:
method: GET
receiveGET:
channel:
$ref: '#/channels/GET'
action: receive
bindings:
http:
method: GET
sendPOST:
channel:
$ref: '#/channels/POST'
action: send
bindings:
http:
method: POST
receivePOST:
channel:
$ref: '#/channels/POST'
action: receive
sendPATCH:
channel:
$ref: '#/channels/PATCH'
action: send
bindings:
http:
method: PATCH
receivePATCH:
channel:
$ref: '#/channels/PATCH'
action: receive
sendPUT:
channel:
$ref: '#/channels/PUT'
action: send
bindings:
http:
method: PUT
receivePUT:
channel:
$ref: '#/channels/PUT'
action: receive
components:
messages:
string:
bindings:
http:
headers:
type: object
required: ["a", "b"]
properties:
a:
type: string
b:
type: string
payload:
type: string
empty:
payload:
type: "null"
x-remoteServers:
- httpbin.org