-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 增加查询文件源与凭证详情的ApiGW接口 #2830 #2870
feat: 增加查询文件源与凭证详情的ApiGW接口 #2830 #2870
Conversation
| ---------------- | ------ | ------------------------------------------------------------ | | ||
| bk_scope_type | string | 资源范围类型。可选值: biz - 业务,biz_set - 业务集 | | ||
| bk_scope_id | string | 资源范围ID, 与bk_scope_type对应, 表示业务ID或者业务集ID | | ||
| id | string | 凭据ID | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
统一使用“凭证”,与页面保持一致,其他地方也检查下,有“凭据”的地方都改过来。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
| bk_scope_type | string | 是 | 资源范围类型。可选值: biz - 业务,biz_set - 业务集 | | ||
| bk_scope_id | string | 是 | 资源范围ID, 与bk_scope_type对应, 表示业务ID或者业务集ID | | ||
| bk_biz_id | long | 是 | *已弃用*。业务ID。此字段已被弃用并由字段bk_scope_type+bk_scope_id替换 | | ||
| id | String | 是 | 凭据ID | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
统一使用“凭证”,与页面保持一致,其他地方也检查下,有“凭据”的地方都改过来。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
|
||
- GET | ||
```json | ||
/api/v3/get_file_source_detail?bk_scope_type=biz&bk_scope_id=1&code=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code=1不太合适,看着像数字,可改为bkrepo-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
"data": { | ||
"bk_scope_type": "biz", | ||
"bk_scope_id": "2", | ||
"id": 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id改为大于0的数字
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
"code": "xxx", | ||
"alias": "xxx", | ||
"status": 0, | ||
"file_source_type": 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个字段建议改为文件源类型的code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
| code | string | 文件源code | | ||
| alias | string | 文件源别名 | | ||
| status | int | 状态 | | ||
| file_source_type | int | 类型。可选值:蓝鲸制品库 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个字段建议改为文件源类型的code,类型与描述需要相应修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
| credential_id | string | 凭据ID | | ||
| enable | bool | 是否启用 | | ||
| creator | string | 作业创建人账号 | | ||
| create_time | long | 创建时间,Unix 时间戳 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要注明单位为ms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
| creator | string | 作业创建人账号 | | ||
| create_time | long | 创建时间,Unix 时间戳 | | ||
| last_modify_user | string | 作业修改人账号 | | ||
| last_modify_time | long | 最后修改时间,Unix 时间戳 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要注明单位为ms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
@@ -0,0 +1,79 @@ | |||
### Function Description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESB文档可去除,只提供ApiGW的接口
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已去除
@@ -291,6 +291,17 @@ | |||
dest_http_method: POST | |||
is_hidden: True | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESB相关改动可去除,只提供ApiGW的接口
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已去除
String username, | ||
String appCode, | ||
@AuditRequestBody EsbGetFileSourceDetailV3Req req) { | ||
FileSourceDTO fileSourceDTO = fileSourceService.getFileSourceByCode(req.getCode()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要加上appId查询,code仅在appId下唯一,仅使用code获取的地方需要改过来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
几个小问题需要处理下
@@ -39,8 +39,9 @@ | |||
public interface ServiceFileSourceResource { | |||
|
|||
@ApiOperation(value = "获取文件源ID", produces = "application/json") | |||
@GetMapping("/service/fileSource/getFileSourceIdByCode/codes/{code}") | |||
@GetMapping("/service/app/{appId}/fileSource/getFileSourceIdByCode/codes/{code}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不要直接改接口路径,避免发布时任务异常。
添加一个新的接口,并将老接口标记为Deprecated,在下个大版本再删除,以实现无损发布。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1个问题需要处理。
No description provided.