Files
FastGPT/scripts/openapi/openapi.json
Finley Ge ca9f36ef9f chore: Jest Testing structure (#2707)
* deps: add jest deps

* chore: mock

* feat: use mocinggoose

* feat: jest

* chore: remove babel.config.js
2024-09-19 13:34:03 +08:00

2756 lines
61 KiB
JSON

{
"paths": {
"/common/file/previewContent": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/file/read": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/file/upload": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/file/uploadImage": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/system/getInitData": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/system/unlockTask": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/common/tools/urlFetch": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/ai/agent/createQuestionGuide": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/ai/token": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/core/app/copy": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"string": {
"type": "appId",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/app/create": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "parentId",
"in": "body",
"required": false,
"schema": {
"type": "ParentIdType"
}
},
{
"description": "\n",
"name": "name",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "avatar",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "type",
"in": "body",
"required": false,
"schema": {
"type": "AppTypeEnum"
}
},
{
"description": "\n",
"name": "modules",
"in": "body",
"required": true,
"schema": {
"type": "TSIndexedAccessType"
}
},
{
"description": "\n",
"name": "edges",
"in": "body",
"required": false,
"schema": {
"type": "TSIndexedAccessType"
}
},
{
"description": "\n",
"name": "chatConfig",
"in": "body",
"required": false,
"schema": {
"type": "TSIndexedAccessType"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/del": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/detail": {
"get": {
"description": "获取我的模型",
"parameters": [],
"responses": {
"200": {
"description": "获取我的模型",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/folder/create": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "parentId",
"in": "body",
"required": false,
"schema": {
"type": "ParentIdType"
}
},
{
"description": "\n",
"name": "name",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "intro",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/folder/path": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/getChatLogs": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/httpPlugin/create": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/core/app/httpPlugin/getApiSchemaByUrl": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/httpPlugin/update": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "appId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "name",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "avatar",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "intro",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "pluginData",
"in": "body",
"required": true,
"schema": {
"type": "TSIndexedAccessType"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/list": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "parentId",
"in": "body",
"required": false,
"schema": {
"type": "ParentIdType"
}
},
{
"description": "\n",
"name": "type",
"in": "body",
"required": false,
"schema": {
"type": "AppTypeEnum | AppTypeEnum[]"
}
},
{
"description": "\n",
"name": "getRecentlyChat",
"in": "body",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"description": "\n",
"name": "searchKey",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/plugin/getPreviewNode": {
"get": {
"description": "",
"parameters": [
{
"name": "appId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/plugin/getSystemPluginTemplates": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "searchKey",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "parentId",
"in": "body",
"required": true,
"schema": {
"type": "ParentIdType"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/plugin/path": {
"get": {
"description": "",
"parameters": [
{
"name": "parentId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "ParentIdType"
}
}
],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "Promise"
}
}
}
}
}
}
},
"/core/app/resumeInheritPermission": {
"get": {
"description": "resume the app's inherit permission.",
"parameters": [
{
"name": "appId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "resume the app's inherit permission.",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/template/detail": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/template/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/transitionWorkflow": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"string": {
"type": "id",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/app/update": {
"get": {
"description": "修改默认权限\n 1. 继承态目录:关闭继承态,修改权限,同步子目录默认权限\n 2. 继承态资源:关闭继承态,修改权限, 复制父级协作者。\n 3. 非继承目录:修改权限,同步子目录默认权限\n 4. 非继承资源:修改权限\n\n 移动\n 1. 继承态目录:改 parentId, 修改成父的默认权限,同步子目录默认权限和协作者\n 2. 继承态资源:改 parentId\n 3. 非继承:改 parentId",
"parameters": [],
"responses": {
"200": {
"description": "修改默认权限\n 1. 继承态目录:关闭继承态,修改权限,同步子目录默认权限\n 2. 继承态资源:关闭继承态,修改权限, 复制父级协作者。\n 3. 非继承目录:修改权限,同步子目录默认权限\n 4. 非继承资源:修改权限\n\n 移动\n 1. 继承态目录:改 parentId, 修改成父的默认权限,同步子目录默认权限和协作者\n 2. 继承态资源:改 parentId\n 3. 非继承:改 parentId",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/version/detail": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/version/latest": {
"get": {
"description": "",
"parameters": [
{
"name": "appId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"StoreNodeItemType[]": {
"type": "nodes",
"description": "\n"
},
"StoreEdgeItemType[]": {
"type": "edges",
"description": "\n"
},
"AppChatConfigType": {
"type": "chatConfig",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/app/version/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/version/listWorkflowx": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"string": {
"type": "tmbId",
"description": "\n"
},
"Date": {
"type": "time",
"description": "\n"
},
"boolean | TSUndefinedKeyword": {
"type": "isPublish",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/app/version/publish": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/version/revert": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/app/version/update": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "appId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "versionId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "versionName",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/chatTest": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/clearHistories": {
"get": {
"description": "clear chat history",
"parameters": [],
"responses": {
"200": {
"description": "clear chat history",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/delHistory": {
"get": {
"description": "clear chat history",
"parameters": [],
"responses": {
"200": {
"description": "clear chat history",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/feedback/closeCustom": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/feedback/updateUserFeedback": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/getHistories": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/getResData": {
"get": {
"description": "",
"parameters": [
{
"description": "\n",
"in": "query",
"schema": {
"type": "OutLinkChatAuthProps & TSTypeLiteral"
}
}
],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "ChatHistoryItemResType[] | TSTypeLiteral"
}
}
}
}
}
}
},
"/core/chat/init": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/inputGuide/countTotal": {
"get": {
"description": "",
"parameters": [
{
"name": "appId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"number": {
"type": "total",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/chat/inputGuide/create": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"number": {
"type": "insertLength",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/chat/inputGuide/delete": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "appId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "dataIdList",
"in": "body",
"required": true,
"schema": {
"type": "string[]"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/inputGuide/deleteAll": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "appId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/inputGuide/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "PaginationResponse"
}
}
}
}
}
}
},
"/core/chat/inputGuide/query": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "string[]"
}
}
}
}
}
}
},
"/core/chat/inputGuide/update": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/core/chat/item/delete": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/item/getSpeech": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/outLink/init": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/team/init": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/chat/updateHistory": {
"get": {
"description": "update chat top, custom title",
"parameters": [],
"responses": {
"200": {
"description": "update chat top, custom title",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/allDataset": {
"get": {
"description": "get all dataset by teamId or tmbId",
"parameters": [],
"responses": {
"200": {
"description": "get all dataset by teamId or tmbId",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create/csvTable": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create/fileId": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create/link": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create/localFile": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create/text": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/create": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/delete": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/detail": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/paths": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/read": {
"get": {
"description": "",
"parameters": [
{
"name": "collectionId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "type",
"description": "\n"
},
"string": {
"type": "value",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/dataset/collection/scrollList": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/sync/link": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/collection/update": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/create": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/core/dataset/data/delete": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/data/detail": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"string": {
"type": "source",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/dataset/data/insertData": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/data/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/data/pushData": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/data/update": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/delete": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/detail": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/exportAll": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/file/getPreviewChunks": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "TSTypeLiteral[]"
}
}
}
}
}
}
},
"/core/dataset/folder/create": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/core/dataset/list": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "parentId",
"in": "body",
"required": true,
"schema": {
"type": "ParentIdType"
}
},
{
"description": "\n",
"name": "type",
"in": "body",
"required": false,
"schema": {
"type": "DatasetTypeEnum"
}
},
{
"description": "\n",
"name": "searchKey",
"in": "body",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/paths": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/resumeInheritPermission": {
"get": {
"description": "resume the dataset's inherit permission.",
"parameters": [
{
"name": "datasetId",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "resume the dataset's inherit permission.",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/searchTest": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/training/getDatasetTrainingQueue": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"number": {
"type": "trainingCount",
"description": "\n"
}
}
}
}
}
}
}
}
},
"/core/dataset/training/getQueueLen": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/core/dataset/training/rebuildEmbedding": {
"post": {
"description": "",
"parameters": [
{
"description": "\n",
"name": "datasetId",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "\n",
"name": "vectorModel",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/core/dataset/update": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "TSAnyKeyword"
}
}
}
}
}
}
},
"/core/workflow/debug": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/lafApi/[...path]": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/plugins/TFSwitch/index": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/plugins/customFeedback/index": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/plugins/customFeedback/v2/index": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/plugins/textEditor/index": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/plugins/textEditor/v2/index": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/openapi/create": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/openapi/delete": {
"get": {
"description": "",
"parameters": [
{
"name": "id",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/openapi/list": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/openapi/update": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/outLink/create": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "\n",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/support/outLink/delete": {
"get": {
"description": "delete a shareChat by shareChatId",
"parameters": [
{
"name": "id",
"description": "\n",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "delete a shareChat by shareChatId",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/outLink/feishu/[token]": {
"get": {
"description": "",
"parameters": [
{
"description": "\n",
"in": "query",
"schema": {
"type": "TSAnyKeyword"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/outLink/list": {
"get": {
"description": "查询应用内全部 Outlink",
"parameters": [
{
"name": "appId",
"description": "\n应用 ID",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "type",
"description": "应用 ID\n类型",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "响应: 应用内全部 Outlink\n查询应用内全部 Outlink",
"content": {
"application/json": {
"schema": {
"type": "OutLinkSchema[]"
}
}
}
}
}
}
},
"/support/outLink/offiaccount/[token]": {
"get": {
"description": "",
"parameters": [
{
"description": "\n",
"in": "query",
"schema": {
"type": "TSAnyKeyword"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/outLink/update": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/outLink/wecom/[token]": {
"get": {
"description": "",
"parameters": [
{
"description": "\n",
"in": "query",
"schema": {
"type": "TSAnyKeyword"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/user/account/loginByPassword": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/account/loginout": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/account/tokenLogin": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/user/account/update": {
"post": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/user/account/updatePasswordByOld": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/team/limit/datasetSizeLimit": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/team/limit/exportDatasetLimit": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/team/limit/webSyncLimit": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/team/plan/getTeamPlanStatus": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/support/user/team/update": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
}
}
},
"/support/wallet/usage/createTrainingUsage": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/system/img/[id]": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/v1/audio/transcriptions": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/v1/chat/completions": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/v1/embeddings": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"openapi": "3.0.0",
"info": {
"title": "FastGPT OpenAPI",
"version": "1.0.0",
"author": "FastGPT"
},
"servers": [
{
"url": "http://localhost:4000"
}
]
}