dify插件初步构建
This commit is contained in:
78
difyPlugin/dify-tools.json
Normal file
78
difyPlugin/dify-tools.json
Normal 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": "返回数据"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user