You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- (Feature) Added the new HttpRequest Service which allows users to send GET, POST, PUT, and DELETE requests to a specific URL, along with the headers and payload data
<p>{{ "The Http Request Service allows you to send HTTP requests to a specified url. You can choose which HTTP method to use along with the data that is sent with each request."|t }}</p>
4
+
5
+
{{ forms.textField({
6
+
label: "Request Url"|t,
7
+
instructions: "The url to send the request."|t,
8
+
id: 'http_url',
9
+
name: 'settings[serviceSettings][http][url]',
10
+
value: settings.url
11
+
}) }}
12
+
13
+
{{ forms.selectField({
14
+
label: 'Action'|t,
15
+
name: 'settings[serviceSettings][http][action]',
16
+
value: settings.action,
17
+
id: 'http_action',
18
+
options: [{
19
+
label: 'GET',
20
+
value: 'get'
21
+
},{
22
+
label: 'POST',
23
+
value: 'post'
24
+
},{
25
+
label: 'PUT',
26
+
value: 'put'
27
+
},{
28
+
label: 'DELETE',
29
+
value: 'delete'
30
+
}]
31
+
}) }}
32
+
33
+
{{ forms.editableTableField({
34
+
label: "HTTP Headers",
35
+
instructions: "Enter the names and values of HTTP headers to be included in the request."|t,
36
+
name: 'settings[serviceSettings][http][headers]',
37
+
id: 'http_headers',
38
+
cols: {
39
+
name: {
40
+
heading: 'Name'|t,
41
+
type: 'singleline'
42
+
},
43
+
value: {
44
+
heading: 'Value'|t,
45
+
type: 'singleline'
46
+
}
47
+
},
48
+
rows: settings.headers
49
+
}) }}
50
+
51
+
{{ forms.editableTableField({
52
+
label: "Request Variables",
53
+
instructions: "Enter the names and values of variables to be included in the request payload."|t,
0 commit comments