From 457f92e4a2e0048557be170569e2daf7f4511a92 Mon Sep 17 00:00:00 2001 From: 622aa39c1f9b166ab1a38c05 <622aa39c1f9b166ab1a38c05@devide> Date: Fri, 14 Apr 2023 07:15:00 +0000 Subject: [PATCH] Fri Apr 14 07:15:00 UTC 2023 inscode --- main.py | 5 ++++- test.json | 37 +++++++++++++++++++++++++++++++++++ test2.json | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 test.json create mode 100644 test2.json diff --git a/main.py b/main.py index d48627a..618900d 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,6 @@ print('欢迎来到 InsCode') import os -print(os.path.dirname('./')) \ No newline at end of file +print(os.path.dirname('./')) +import numpy +print(numpy.__version__) +import \ No newline at end of file diff --git a/test.json b/test.json new file mode 100644 index 0000000..8fd72c6 --- /dev/null +++ b/test.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://www.quickapi.cloud/schema.json", + "pipeline": [ + { + "name": "redis", + "action": "get", + "key": "user_${param.session_id}", + "output": "user", + "json": true, + "property": "common_redis" + }, + { + "name": "pipeline", + "uri": "/test", + "list": [ + { + "name": "set", + "value": "aa not found", + "output": "result" + }, + { + "name": "set", + "output": "param.type", + "value": "test_code" + }, + { + "name": "redis", + "action": "get", + "key": "user_${param.session_id}", + "output": "user", + "json": true, + "property": "common_redis" + } + ] + } + ] +} \ No newline at end of file diff --git a/test2.json b/test2.json new file mode 100644 index 0000000..9bbd38b --- /dev/null +++ b/test2.json @@ -0,0 +1,57 @@ +{ + "$schema": "https://www.quickapi.cloud/schema.json", + "pipeline": [ + { + "name": "pipeline", + "uri": "/test", + "list": [ + { + "name": "set", + "value": "aa not found", + "output": "result" + }, + { + "name": "http", + "output": "result", + "json": true, + "url": "https://xxxx.com?ids=${param.id}&fields=title,url,body&type=blog" + } + ] + }, + { + "name": "pipeline", + "uri": "/test", + "list": [ + { + "name": "set", + "value": "aa not found", + "output": "result" + } + ] + }, + { + "name": "pipeline", + "uri": "//upload/file", + "list": [ + { + "name": "upload", + "upload_dir": "./public/upload_img", + "file_url_prefix": "/upload_img", + "output": "result" + } + ] + }, + { + "name": "pipeline", + "uri": "//actuator/health", + "render": "text", + "list": [ + { + "name": "set", + "value": "{\"status\": \"UP\"}", + "output": "result" + } + ] + } + ] +} \ No newline at end of file -- GitLab