-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from alex-smile/update_esb_apis_1019
esb 更新 data 组件
- Loading branch information
Showing
7 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.12.27 | ||
2.12.28 |
This file contains 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
This file contains 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
57 changes: 57 additions & 0 deletions
57
...esb/components/confapis/jobv3/apidocs/zh_hans/generate_local_file_upload_url.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
### 功能描述 | ||
|
||
生成本地文件上传URL。 | ||
|
||
### 请求参数 | ||
|
||
{{ common_args_desc }} | ||
|
||
#### 接口参数 | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|----------------------------|------------|--------|------------| | ||
| bk_biz_id | long | 是 | 业务 ID | | ||
| file_name_list | string[] | 是 | 要上传的文件名列表 | | ||
|
||
|
||
### 请求参数示例 | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_biz_id": 1, | ||
"file_name_list": ["file1.txt","file2.txt"] | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"data": { | ||
"url_map": { | ||
"file1.txt":{ | ||
"upload_url": "http://bkrepo.com/generic/temporary/upload/bkjob/localupload/1/008f821f-259b-4f62-bd84-1e89d6f05f0d/admin/file1.txt?token=30adf862fdce4b02b909e6a1a1c762c6", | ||
"path": "1/008f821f-259b-4f62-bd84-1e89d6f05f0d/admin/file1.txt" | ||
}, | ||
"file2.txt":{ | ||
"upload_url": "http://bkrepo.com/generic/temporary/upload/bkjob/localupload/1/008f821f-259b-4f62-bd84-1e89d6f05f0d/admin/file2.txt?token=30adf862fdce4b02b909e6a1a1c762c6", | ||
"path": "1/008f821f-259b-4f62-bd84-1e89d6f05f0d/admin/file2.txt" | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### 返回结果参数说明 | ||
|
||
#### data | ||
|
||
| 字段 | 类型 |字段是否一定存在 | 描述 | | ||
|-----------|----------|---------------|---------| | ||
| url_map | map | 是 | key:传入的文件名,value:upload_url为带凭据的文件上传地址,path为分发该文件时要传给文件分发接口的路径 | |
This file contains 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
This file contains 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
This file contains 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