-
-
Notifications
You must be signed in to change notification settings - Fork 258
/
rpc-client.yml
69 lines (65 loc) · 1.38 KB
/
rpc-client.yml
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
asyncapi: '2.5.0'
id: 'urn:example:rpcclient'
defaultContentType: application/json
info:
title: RPC Client Example
description: This example demonstrates how to define an RPC client.
version: '1.0.0'
servers:
production:
url: rabbitmq.example.org
protocol: amqp
channels:
'{queue}':
parameters:
queue:
schema:
type: string
pattern: '^amq\\.gen\\-.+$'
bindings:
amqp:
is: queue
queue:
exclusive: true
publish:
operationId: receiveSumResult
bindings:
amqp:
ack: false
message:
correlationId:
location: $message.header#/correlation_id
payload:
type: object
properties:
result:
type: number
examples:
- 7
rpc_queue:
bindings:
amqp:
is: queue
queue:
durable: false
subscribe:
operationId: requestSum
bindings:
amqp:
ack: true
message:
bindings:
amqp:
replyTo:
type: string
correlationId:
location: $message.header#/correlation_id
payload:
type: object
properties:
numbers:
type: array
items:
type: number
examples:
- [4,3]