-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-config.json
54 lines (54 loc) · 1.34 KB
/
sample-config.json
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
{
"path": "/tokiEndpoint",
"tags": [],
"description": "Do some things, then emit to RabbitMQ",
"actions": [
{
"name": "action1",
"type": "toki-method-http",
"inputConfiguration": {},
"outputConfiguration": [
{
"writeToKey": "doc1",
"webhookUri": "uri/path/{{doc1.id}}",
"idKey": "conversationId",
"httpAction": "GET"
},
{
"writeToKey" : "doc2",
"webhookUri" : "uri/path/message",
"idKey" : "messageId",
"httpAction" : "POST",
"requestBody" : "{ \"ids\" : [\"{{doc2.id}}\"] }"
}
]
},
{
"name": "Rabbit",
"type": "toki-method-rabbit",
"rabbitConfiguration": {
"server": "rabbitbox",
"user": "guest",
"password": "guest",
"vhost": "guest"
},
"inputConfiguration": {
"event": "toki.request-processed",
"message": {
"uri": "{{action1.output.doc1.webhookUri}}",
"httpAction": "POST",
"payload": {
"id": "{{action1.output.doc1.id}}"
}
},
"conversation": {
"uri": "{{action1.output.doc2.webhookUri}}",
"httpAction": "POST",
"payload": {
"id": "{{action1.output.doc2.requestBody}}"
}
}
}
}
]
}