From 0d8a82fc3363b4186fcd52059f30ca12303b3b88 Mon Sep 17 00:00:00 2001 From: Zhuym Date: Tue, 28 Jan 2025 13:31:02 +0800 Subject: [PATCH] 1 --- .vscode/settings.json | 3 + config.json | 103 ++++++++++ index.html | 434 ++++++++++++++++++++++++++++++++++++++++++ index1.html | 431 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 971 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 config.json create mode 100644 index.html create mode 100644 index1.html diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5ee467 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "CodeGPT.apiKey": "DeepSeek" +} \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..bd7dfc0 --- /dev/null +++ b/config.json @@ -0,0 +1,103 @@ +{ + "title": "API调试工具", + "theme": "light", + "apis": [ + { + "name": "二维码扫描", + "type": "qr", + "endpoint": "/qr", + "method": "GET", + "params": [ + { + "key": "qrcode", + "label": "二维码内容", + "type": "qr", + "required": true + } + ], + "responseFields": ["status", "timestamp", "info", "apiName", "date", "userId"] + }, + { + "name": "发送6倍券", + "type": "action", + "endpoint": "/ticket", + "method": "GET", + "params": [ + { + "key": "userid", + "label": "用户ID", + "type": "text", + "required": true, + "source": "userId" + } + ], + "responseFields": ["status", "timestamp", "info", "apiName", "date", "userId"] + }, + { + "name": "保存99公里", + "type": "action", + "endpoint": "/mapstock", + "method": "GET", + "params": [ + { + "key": "userid", + "label": "用户ID", + "type": "text", + "required": true, + "source": "userId" + } + ], + "responseFields": ["status", "timestamp", "info", "apiName", "date", "userId"] + }, + { + "name": "解锁DX曲目", + "type": "action", + "endpoint": "/unlock", + "method": "GET", + "params": [ + { + "key": "userid", + "label": "用户ID", + "type": "text", + "required": true, + "source": "userId" + } + ], + "responseFields": ["status", "timestamp", "info", "apiName", "date", "userId"] + }, + { + "name": "更新音乐数据", + "type": "form", + "endpoint": "/music", + "method": "POST", + "params": [ + { + "key": "userId", + "label": "用户ID", + "type": "text", + "required": true, + "source": "userId" + }, + { + "key": "musicId", + "label": "音乐ID", + "type": "number", + "required": true + }, + { + "key": "level", + "label": "难度", + "type": "number", + "required": true + }, + { + "key": "playCount", + "label": "游玩次数", + "type": "number", + "required": true + } + ], + "responseFields": ["status", "timestamp", "info", "apiName", "date", "userId"] + } + ] + } \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..637e2eb --- /dev/null +++ b/index.html @@ -0,0 +1,434 @@ + + + + API调试工具 + + + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/index1.html b/index1.html new file mode 100644 index 0000000..4e6dde1 --- /dev/null +++ b/index1.html @@ -0,0 +1,431 @@ + + + + API调试工具 + + + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file