Skip to content

Commit aac444f

Browse files
committed
introduce http verb selectable option
1 parent c426283 commit aac444f

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

component.json

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,19 @@
2525
},
2626
"actions": {
2727
"post": {
28-
"title": "Post",
29-
"main": "./post.js",
28+
"title": "Send data",
29+
"main": "./send.js",
3030
"fields": {
31-
"uri": {
32-
"viewClass": "TextFieldView",
33-
"label": "URI",
34-
"required": true
31+
"method": {
32+
"viewClass": "SelectView",
33+
"label": "HTTP Verb",
34+
"prompt": "Please select",
35+
"required": true,
36+
"model": {
37+
"POST": "POST",
38+
"PUT": "PUT"
39+
}
3540
},
36-
"secret": {
37-
"viewClass": "TextFieldView",
38-
"label": "Secret",
39-
"required": false
40-
}
41-
}
42-
},
43-
"put": {
44-
"title": "Put",
45-
"main": "./put.js",
46-
"fields": {
4741
"uri": {
4842
"viewClass": "TextFieldView",
4943
"label": "URI",

0 commit comments

Comments
 (0)