Commit 7175d6a5 authored by rockyl's avatar rockyl

完善星速台通用接口的过程

parent 9da4b276
{ {
"props": { "props": {
"host": {
"type": "string",
"alias": "接口根"
},
"uri": { "uri": {
"type": "string", "type": "string",
"alias": "URI" "alias": "URI"
...@@ -14,7 +10,8 @@ ...@@ -14,7 +10,8 @@
"get", "get",
"post" "post"
], ],
"alias": "方法" "alias": "方法",
"default": "get"
}, },
"dataName": { "dataName": {
"type": "string", "type": "string",
...@@ -59,13 +56,13 @@ ...@@ -59,13 +56,13 @@
"uuid": "567169ba-a2c1-4c10-9025-605a2e89ef0f", "uuid": "567169ba-a2c1-4c10-9025-605a2e89ef0f",
"meta": "a4b27753-4cbb-47e3-9b31-51ced475e41a", "meta": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"design": { "design": {
"x": 151, "x": 163,
"y": 115, "y": 133,
"input": { "input": {
"default": [ "default": [
{ {
"x": 5.5, "x": 5.5,
"y": 47.5 "y": 39
} }
] ]
}, },
...@@ -73,7 +70,7 @@ ...@@ -73,7 +70,7 @@
"success": [ "success": [
{ {
"x": 124.5, "x": 124.5,
"y": 47.5 "y": 39
} }
] ]
} }
...@@ -102,7 +99,7 @@ ...@@ -102,7 +99,7 @@
"default": [ "default": [
{ {
"x": 5.5, "x": 5.5,
"y": 56 "y": 64.5
} }
] ]
}, },
...@@ -110,13 +107,13 @@ ...@@ -110,13 +107,13 @@
"success": [ "success": [
{ {
"x": 124.5, "x": 124.5,
"y": 49 "y": 57.5
} }
], ],
"failed": [ "failed": [
{ {
"x": 124.5, "x": 124.5,
"y": 63 "y": 71.5
} }
] ]
} }
...@@ -137,12 +134,8 @@ ...@@ -137,12 +134,8 @@
"metas": [ "metas": [
{ {
"id": "a4b27753-4cbb-47e3-9b31-51ced475e41a", "id": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"script": "var host = engine.findVariable('host', args, props);\nvar uri = engine.findVariable('uri', args, props);\nnext('success', {url: engine.joinPath(host, uri)});", "script": "//var projectX = 'projectX';\n//var projectID = engine.env.projectID;\nvar uri = engine.findVariable('uri', args, props);\nnext('success', {url: uri});//engine.joinPath(projectX, projectID, uri)});",
"props": { "props": {
"host": {
"type": "string",
"alias": "接口根"
},
"uri": { "uri": {
"type": "string", "type": "string",
"alias": "URI" "alias": "URI"
......
{ {
"props": { "props": {
"host": {
"type": "string",
"alias": "接口根"
},
"uri": { "uri": {
"type": "string", "type": "string",
"alias": "URI" "alias": "URI"
...@@ -14,7 +10,8 @@ ...@@ -14,7 +10,8 @@
"get", "get",
"post" "post"
], ],
"alias": "方法" "alias": "方法",
"default": "get"
}, },
"dataName": { "dataName": {
"type": "string", "type": "string",
...@@ -59,13 +56,13 @@ ...@@ -59,13 +56,13 @@
"uuid": "567169ba-a2c1-4c10-9025-605a2e89ef0f", "uuid": "567169ba-a2c1-4c10-9025-605a2e89ef0f",
"meta": "a4b27753-4cbb-47e3-9b31-51ced475e41a", "meta": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"design": { "design": {
"x": 151, "x": 163,
"y": 115, "y": 133,
"input": { "input": {
"default": [ "default": [
{ {
"x": 5.5, "x": 5.5,
"y": 47.5 "y": 39
} }
] ]
}, },
...@@ -73,7 +70,7 @@ ...@@ -73,7 +70,7 @@
"success": [ "success": [
{ {
"x": 124.5, "x": 124.5,
"y": 47.5 "y": 39
} }
] ]
} }
...@@ -102,7 +99,7 @@ ...@@ -102,7 +99,7 @@
"default": [ "default": [
{ {
"x": 5.5, "x": 5.5,
"y": 56 "y": 64.5
} }
] ]
}, },
...@@ -110,13 +107,13 @@ ...@@ -110,13 +107,13 @@
"success": [ "success": [
{ {
"x": 124.5, "x": 124.5,
"y": 49 "y": 57.5
} }
], ],
"failed": [ "failed": [
{ {
"x": 124.5, "x": 124.5,
"y": 63 "y": 71.5
} }
] ]
} }
...@@ -137,12 +134,8 @@ ...@@ -137,12 +134,8 @@
"metas": [ "metas": [
{ {
"id": "a4b27753-4cbb-47e3-9b31-51ced475e41a", "id": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"script": "var host = engine.findVariable('host', args, props);\nvar uri = engine.findVariable('uri', args, props);\nnext('success', {url: engine.joinPath(host, uri)});", "script": "//var projectX = 'projectX';\n//var projectID = engine.env.projectID;\nvar uri = engine.findVariable('uri', args, props);\nnext('success', {url: uri});//engine.joinPath(projectX, projectID, uri)});",
"props": { "props": {
"host": {
"type": "string",
"alias": "接口根"
},
"uri": { "uri": {
"type": "string", "type": "string",
"alias": "URI" "alias": "URI"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment