dify插件初步构建

This commit is contained in:
2025-12-30 13:38:32 +08:00
parent 8011dec826
commit c07fe6b938
27 changed files with 820 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
{
"openapi": "3.1.0",
"info": {
"title": "DifyPlugin",
"description": "Dify插件服务API",
"version": "1.0.0"
},
"servers": [
{
"url": "http://192.168.0.253:8380/api/v1",
"description": "开发服务器"
}
],
"paths": {
"/test/hello/world": {
"get": {
"operationId": "HelloWord",
"summary": "Hello World",
"description": "测试接口连通性",
"responses": {
"200": {
"description": "成功响应",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResultDomain"
}
}
}
}
}
}
},
"/test/hello/ping": {
"get": {
"operationId": "Ping",
"summary": "Ping测试",
"description": "测试服务是否正常运行",
"responses": {
"200": {
"description": "成功响应",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResultDomain"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ResultDomain": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "状态码"
},
"success": {
"type": "boolean",
"description": "是否成功"
},
"message": {
"type": "string",
"description": "返回消息"
},
"data": {
"description": "返回数据"
}
}
}
}
}
}