-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathopenapi-to-file.camel.yaml
44 lines (44 loc) · 1.07 KB
/
openapi-to-file.camel.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
- route:
id: route-order-post
description: Store order
from:
id: from-5406
description: post order
uri: direct:order
parameters:
exchangePattern: InOut
steps:
- to:
id: to-1473
description: store order
uri: file:tmp
parameters:
fileName: ${jq(.order_id)}.json
- to:
id: to-2210
uri: log:logger
parameters:
multiline: true
showAll: true
- route:
id: route-order-get
description: Get order
from:
id: from-4217
description: get order
uri: direct:getOrder
parameters:
exchangePattern: InOut
steps:
- pollEnrich:
id: pollEnrich-1934
expression:
simple:
expression: file:tmp?fileName=${header.order_id}.json&delete=true
timeout: "1000"
- to:
id: to-2211
uri: log:logger
parameters:
multiline: true
showAll: true