Skip to content
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

互联互通接口标准v1.1.0更新 #15

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions 互联互通API接口规范/3.算法组件层接口/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

关于接口 API 内容如有问题可以联系我们,联系方式如下:

| 姓名 | 单位 | 联系方式 |
| ------ | ---------------- | --------------------------------------------------------- |
| 丁亚丹 | 中国银联 | dingyadan@unionpay.com |
| 刘瑞 | 上海浦东发展银行 | liur29@spdb.com.cn |
| 龚乐诚 | 上海浦东发展银行 | gonglc@spdb.com.cn |
| 靳新 | 洞见科技 | jinxin@insightone.cn |
| 赵永坤 | 洞见科技 | zhaoyongkun@insightone.cn|
| 马煜翔 | 蓝象智联 | zichen.ma@trustbe.cn |
| 王超 | 蓝象智联 | congying.wang@trustbe.cn |
| 姓名 | 单位 | 联系方式 |
| ------ | ---------------- | ------------------------- |
| 丁亚丹 | 中国银联 | dingyadan@unionpay.com |
| 谢袁源 | 中国银联 | xieyuanyuan@unionpay.com |
| 刘瑞 | 上海浦东发展银行 | liur29@spdb.com.cn |
| 龚乐诚 | 上海浦东发展银行 | gonglc@spdb.com.cn |
| 靳新 | 洞见科技 | jinxin@insightone.cn |
| 赵永坤 | 洞见科技 | zhaoyongkun@insightone.cn |
| 马煜翔 | 蓝象智联 | zichen.ma@trustbe.cn |
| 王超 | 蓝象智联 | congying.wang@trustbe.cn |

## 目录结构

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
**文档版本**

```
v1.0.0
v1.1.0
```

## 2 算法组件自描述文件
Expand Down Expand Up @@ -449,13 +449,13 @@ x-mprac-token-set: required 多方资源访问控制的许可凭证,用于

#### 3.1.3 公共出参

状态码 **200**
状态码 **0**

| 名称 | 类型 | 必选 | 中文名 | 说明 |
| ---- | ------ | ---- | ------------ | ------------------ |
| code | int32 | true | 状态码 | 200 正常,否则错误 |
| msg | string | true | 错误信息 | none |
| data | object | true | 响应数据内容 | none |
| 名称 | 类型 | 必选 | 中文名 | 说明 |
| ---- | ------ | ---- | ------------ | ---------------- |
| code | int32 | true | 状态码 | 0 正常,否则错误 |
| msg | string | true | 错误信息 | none |
| data | object | true | 响应数据内容 | none |

### 3.2 接口定义

Expand Down Expand Up @@ -487,25 +487,25 @@ x-mprac-token-set: required 多方资源访问控制的许可凭证,用于

| 状态码 | 状态码含义 | 说明 | 数据模型 |
| ------ | ------------------------------------------------------- | ---- | -------- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | 成功 | Inline |
| 0 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | 成功 | Inline |

**返回数据结构**

状态码 **200**
状态码 **0**

| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
| ------ | ------- | ---- | ---- | -------- | ------------------------ |
| code | integer | true | none | 状态码 | 200 正常,否则错误 |
| code | integer | true | none | 状态码 | 0 正常,否则错误 |
| status | string | true | none | 任务状态 | RUNNING、SUCCESS、FAILED |
| role | string | true | none | 角色 | 任务节点所属角色 |

> 返回示例

> 200 Response
> 0 Response

```json
{
"code": 200,
"code": 0,
"status": "RUNNING",
"role": "host",
}
Expand All @@ -518,7 +518,7 @@ x-mprac-token-set: required 多方资源访问控制的许可凭证,用于
| **标识名称** | **可选性** | **标识含义** | **描述** |
| ---------------- | ---------- | ---------------- | -------------------------------------------- |
| system.storage | 必选 | 存储层服务地址 | 支持配置多个存储服务地址 |
| system.callback | 可选 | 调度层回调地址 | 可通过接口回调,也可通过容器运行结果,或其他 |
| system.callback | 必选 | 调度层回调地址 | 可通过接口回调,也可通过容器运行结果,或其他 |
| system.transport | 必选 | 传输服务地址 | 填写传输地址信息 |
| system.compute | 可选 | 计算引擎服务地址 | 填写引擎服务地址信息 |
| system.control_port | 可选 | 信息查询端口 | 填写算法容器对外的信息查询端口,默认10086 |
Expand Down Expand Up @@ -861,7 +861,7 @@ x-ptp-target-inst-id: optional 接收端机构编号,全网唯一

**响应体**

200 响应数据格式:JSON
0 响应数据格式:JSON

| 参数名称 | 数据类型 | 可选 | 描述 |
| --------------- | ------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -888,7 +888,7 @@ x-ptp-target-inst-id: optional 接收端机构编号,全网唯一

**响应体**

200 响应数据格式:JSON
0 响应数据格式:JSON

| 参数名称 | 数据类型 | 可选 | 描述 |
| --------------- | ------------- | ----- | ---------------------------------- |
Expand Down Expand Up @@ -921,7 +921,7 @@ x-ptp-target-inst-id: optional 接收端机构编号,全网唯一

**响应体**

200 响应数据格式:JSON
0 响应数据格式:JSON

| 参数名称 | 数据类型 | 可选 | 描述 |
| --------------- | ------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -956,7 +956,7 @@ x-ptp-target-inst-id: optional 接收端机构编号,全网唯一

**响应体**

200 响应数据格式:JSON
0 响应数据格式:JSON

| 参数名称 | 数据类型 | 可选 | 描述 |
| --------------- | ------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
**文档版本**

```
v1.0.0
v1.1.0
```

## 2 节点间通信接口
Expand Down
Loading
Loading