feat: 提供创建执行方案的OpenAPI V4接口 #4247#4341
Merged
Merged
Conversation
jsonwan
commented
Jun 4, 2026
Collaborator
- 提供接口实现、文档与APIGW资源。
- 新增 V4CreateJobPlanRequest / V4JobPlanVariableItem / EsbJobPlanV4DTO - 新增 OpenApiJobPlanV4Resource#createJobPlan 接口定义 - 在 support-files/bk-api-gateway/v3/resources.yaml 注册 /api/v4/create_job_plan - 新增中英文 API 文档 apidocs/zh|en/v4/v4_create_job_plan.md.j2
1.补全 PLAN_NAME_EXIST(1243042) 的 i18n 文案,修复 TC12 同名创建方案 HTTP 500 应返回 409 的问题。
1.更新接口文档与resources.yaml。
wuyzh39
reviewed
Jun 5, 2026
| type: array | ||
| items: | ||
| type: object | ||
| properties: |
Collaborator
There was a problem hiding this comment.
每个拓扑节点元素require id和node_type,建议补上
wuyzh39
reviewed
Jun 5, 2026
| @Getter | ||
| @Setter | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class EsbJobPlanV4DTO extends EsbAppScopeDTO { |
Collaborator
There was a problem hiding this comment.
注释里写OpenAPI,类命名用的是ESB;其他类都叫OpenApixxxV4xxx,这里是Esb,命名不统一,建议也叫OpenApi。且在实际开发中,发现AI对openapi和esb不太理解,会把他们当作两个不相关的东西。所以干脆V4以后的接口相关的类都叫OpenApiV4xxx好了
1. 按 PR TencentBlueKing#4341 Review 将 EsbJobPlanV4DTO 重命名为 OpenApiV4JobPlanDTO,与 OpenApiV4HostDTO 等 V4 命名一致。 2. resources.yaml 中 create_job_plan 的 topo_node_list 元素补充 required: id、node_type。
wuyzh39
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.