-
Notifications
You must be signed in to change notification settings - Fork 5
/
component.json
146 lines (146 loc) · 5.47 KB
/
component.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
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
140
141
142
143
144
145
146
{
"title": "REST API",
"version": "1.2.20",
"description": "A generic connector for accessing HTTP and REST APIs .",
"buildType": "docker",
"deprecated": true,
"docsUrl": "https://github.com/elasticio/rest-api-component",
"credentials": {
"fields": {
"auth": {
"required": false,
"viewClass": "HTTPAuthView"
}
},
"oauth2" : {
"client_id" : "{{clientId}}",
"client_secret" : "{{clientSecret}}",
"auth_uri" : "{{authUri}}",
"token_uri" : "{{tokenUri}}"
}
},
"triggers": {
"httpRequestTrigger": {
"main": "./lib/triggers/httpRequestTrigger.js",
"title": "HTTP request",
"help": {
"description": "Will send a GET/POST/PUT/DELETE HTTP request and parse the response back to the flow",
"link": "/components/rest-api/index.html#http-request"
},
"type": "polling",
"metadata": {
"out": {}
},
"fields": {
"reader": {
"label": "REST API",
"required": true,
"viewClass": "RESTAPIView"
},
"dontThrowErrorFlg": {
"label": "Don`t throw Error on Failed Calls",
"viewClass": "CheckBoxView"
},
"splitResult": {
"label": "Split Result if it is an Array",
"viewClass": "CheckBoxView",
"note": "After making the request, and applying the above JSONata expression, if the result is an array and this box is checked, we will emit one message for each element of the array."
},
"enableRebound": {
"label": "Retry on failure",
"viewClass": "CheckBoxView"
},
"noStrictSSL": {
"label": "Do not verify SSL certificate (unsafe)",
"viewClass": "CheckBoxView"
},
"followRedirect": {
"label": "Follow redirect mode",
"viewClass": "SelectView",
"model": {
"followRedirects": "Follow redirects",
"doNotFollowRedirects": "Do not follow redirects"
},
"prompt": "Follow redirects (default)"
},
"delay": {
"label": "Delay",
"viewClass": "TextFieldView",
"note": "Delay calling the next request after the previous request. Time for the delay is calculated as `Delay`/ `Call Count` and shouldn't be more than 1140 seconds (19 minutes due to platform limitation). The `Call Count` value by default is 1. If you want to use another value, please set the `Call Count` field. "
},
"callCount": {
"label": "Call Count",
"viewClass": "TextFieldView",
"note": "Value should be set only in pair with `Delay`, defaults to 1"
},
"requestTimeoutPeriod": {
"label": "Request timeout",
"viewClass": "TextFieldView",
"note": "Timeout period in milliseconds while component waiting for server response, should be positive integer (1-1140000), defaults to 100000 (100 sec)"
}
}
}
},
"actions": {
"httpRequestAction": {
"main": "./lib/actions/httpRequestAction.js",
"title": "HTTP request",
"help": {
"description": "Will send a GET/POST/PUT/DELETE HTTP request and parse the response back to the flow",
"link": "/components/rest-api/index.html#http-request-1"
},
"metadata": {
"out": {}
},
"fields": {
"reader": {
"label": "REST API",
"required": true,
"viewClass": "RESTAPIView"
},
"dontThrowErrorFlg": {
"label": "Don`t throw Error on Failed Calls",
"viewClass": "CheckBoxView"
},
"splitResult": {
"label": "Split Result if it is an Array",
"viewClass": "CheckBoxView",
"note": "After making the request, and applying the above JSONata expression, if the result is an array and this box is checked, we will emit one message for each element of the array."
},
"enableRebound": {
"label": "Retry on failure",
"viewClass": "CheckBoxView"
},
"noStrictSSL": {
"label": "Do not verify SSL certificate (unsafe)",
"viewClass": "CheckBoxView",
"note": "Unsafe option! Check it if you want to disable SSL certificate verification on the server"
},
"followRedirect": {
"label": "Follow redirect mode",
"viewClass": "SelectView",
"model": {
"followRedirects": "Follow redirects",
"doNotFollowRedirects": "Do not follow redirects"
},
"prompt": "Follow redirects (default)"
},
"delay": {
"label": "Delay",
"viewClass": "TextFieldView",
"note": "Delay calling the next request after the previous request. Time for the delay is calculated as `Delay`/ `Call Count` and shouldn't be more than 1140 seconds (19 minutes due to platform limitation). The `Call Count` value by default is 1. If you want to use another value, please set the `Call Count` field. "
},
"callCount": {
"label": "Call Count",
"viewClass": "TextFieldView",
"note": "Value should be set only in pair with `Delay`, defaults to 1"
},
"requestTimeoutPeriod": {
"label": "Request timeout",
"viewClass": "TextFieldView",
"note": "Timeout period in milliseconds while component waiting for server response, should be positive integer (1-1140000), defaults to 100000 (100 sec)"
}
}
}
}
}