diff --git a/gateway/app.py b/gateway/app.py index 5e60079..fe65caf 100644 --- a/gateway/app.py +++ b/gateway/app.py @@ -194,6 +194,7 @@ async def index(): "if1_measure": "/static/test_interface1.html", "if2_hair_grow": "/static/test_interface2.html", "if3_hair_grow_b": "/static/test_interface3.html", + "if4_features": "/static/test_interface4.html", "if5_hairline": "/static/test_interface5.html", }, } diff --git a/static/integration.html b/static/integration.html index 3f9d0c0..3e7e9c4 100644 --- a/static/integration.html +++ b/static/integration.html @@ -260,10 +260,10 @@ console.log(features['四季色彩季型']); // "冷夏型"(中文字段也保
- 接口4 无测试页(纯 JSON 返回特征字段,浏览器直接调即可查看)。 完整 API 文档:/docs(Swagger UI)
diff --git a/static/test_interface4.html b/static/test_interface4.html new file mode 100644 index 0000000..2968fa0 --- /dev/null +++ b/static/test_interface4.html @@ -0,0 +1,196 @@ + + + + + +POST /api/v1/face/features | 上传照片 → 火山方舟豆包视觉模型 → 42项面部特征 | data.features 为 JSON 字符串
+ +