跳转至

评价算子接口

3.5 评价算子接口(3.7.0)

3.5.1 获取所有算子

Path: /api-evaluation/algorithms/all

Method: GET

Headers:Headers

返回数据
Code 说明 类型
200 OK AlgorithmsResponse



3.5.2 获取分页算子

Path: /api-evaluation/algorithms

Method: GET

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
type query 算子类型 Yes string
page query 当前页码 No number
pageSize query 每页数量 No number
keyword query 关键字 No string
返回数据
Code 说明 类型
200 OK AlgorithmsResponse


3.5.3 创建单个算子

Path: /api-evaluation/algorithms

Method: POST

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
body body 包含name,params等算子信息 Yes Algorithm
返回数据
Code 说明 类型
200 OK Response



3.5.4 批量获取算子

Path: /api-evaluation/algorithms/byid

Method: GET

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
ids query 算子id,逗号分隔 Yes string
返回数据
Code 说明 类型
200 OK { data: [ Algorithm ] }


3.5.5 更新单个算子

Path: /api-evaluation/algorithms/{id}

Method: PUT

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
id path 算子id Yes number
body body 要更新的算子信息对象 Yes Algorithm
返回数据
Code 说明 类型
200 OK Response


3.5.6 批量删除算子

Path: /api-evaluation/algorithms/remove

Method: POST

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
body body 算子id数组 Yes [ string ]
返回数据
Code 说明
204 No content



3.5.7 判断算子名是否重复

Path: /api-evaluation/algorithms/exists/{name}

Method: GET

Headers:Headers

请求参数
参数名称 传参格式 说明 是否必填 类型
name path 算子名称 Yes string
type query 算子类型 Yes "control" | "perception"
返回数据
Code 说明 类型
200 OK { data: { "exists": boolean } }