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": # 出错信息 + } + } +``` + ## 账户管理 ### 查询账户余额