list: get: tags: - Workflows summary: 跨自建应用汇总查看全部工作流 description: 自动遍历当前企业下所有自建应用,聚合返回全量工作流列表及运行状态。 operationId: listAllWorkflows parameters: - name: corpId in: query required: false schema: type: string responses: "200": description: 聚合工作流列表 content: "application/json": schema: type: array items: $ref: ../components/schemas/index.yaml#/WorkflowSummary find: get: tags: - Workflows summary: 按节点类型递归搜索工作流 description: 递归解析所有工作流的 DSL 节点图谱,检索包含特定任务类型(如 code-js2, loop, sql 等)的工作流。 operationId: findWorkflowsByTask parameters: - name: task in: query required: true schema: type: string example: "code-js2" description: 目标节点任务类型 - name: corpId in: query required: false schema: type: string responses: "200": description: 匹配的工作流列表 content: "application/json": schema: type: array items: $ref: ../components/schemas/index.yaml#/WorkflowSummary detail: get: tags: - Workflows summary: 获取单个工作流详情与节点结构 description: 查询指定工作流的完整节点链、输入输出参数映射与触发器配置。 operationId: getWorkflowDetail parameters: - name: pipelineId in: path required: true schema: type: string description: 工作流 ID responses: "200": description: 工作流详情 content: "application/json": schema: $ref: ../components/schemas/index.yaml#/WorkflowDetail toggle: put: tags: - Workflows summary: 启用或停用工作流 description: "切换工作流的运行开关(1: 启用, 0: 停用)。" operationId: toggleWorkflow parameters: - name: pipelineId in: path required: true schema: type: string requestBody: required: true content: "application/json": schema: type: object required: - state properties: state: type: integer enum: [0, 1] description: "目标状态 (1=启用, 0=停用)" responses: "200": description: 状态切换成功 content: "application/json": schema: type: object properties: success: type: boolean state: type: integer