From 15d0c1e84e4cb8d65c877e0d08baa3ccebf49c5e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 15 Apr 2026 18:08:58 +0800 Subject: [PATCH] bugfix --- wwwroot/API.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/wwwroot/API.md b/wwwroot/API.md index 306df9a..e2f1277 100644 --- a/wwwroot/API.md +++ b/wwwroot/API.md @@ -109,6 +109,90 @@ } } ``` +## 下游APIkey + +### 获得apikey list +* path /dapi/downapps.dspy +* method GET +* return +``` + { + "status": "ok", + "data": { + "apikeys": [ + { + "id": # 应用id + "appname": # 应用名 + } + ] + } + } + or + { + "status": "error", + "data": { + "message": # 出错信息 + } + } +``` +### 申请APIkey +* path /dapi/apply_apikey.dspy +* method POST +* headers +``` +{ + "Content-Type": "application/json" +} +``` +* data +``` +{ + "appname": # 必须 + "description": # 可选 +} +``` +* return +``` + { + "status": "ok" + } + or + { + "status": "error", + "data": { + "message": 出错信息 + } + } +``` + +### 查看AKIKEY +* path /dapi/get_apikey.dspy +* method GET +* params +``` +{ + "id": # "获得apikey list" 返回到id +} +``` +* return +``` + { + "status": "ok", + "data": { + "appname": # app名称 + "aapikey": # apikey + "secretkey": # 加密key + } + } + or + { + "status": "error", + "data": { + "message": # 出错信息 + } + } +``` + ## 账户管理 ### 查询账户余额