Skip to content

Computation API ​

由 scripts/generate-api-docs.ts 自动生成 —— 请勿手改 共 3 个端点

GET /computation/{kind}/history ​

运行历史(倒序)

请求参数 ​

参数名位置类型必填说明
kindpathstring✅
limitquerystring—

响应 ​

状态码说明
200

POST /computation/{kind}/run ​

执行计算(带缓存与幂等)

请求参数 ​

参数名位置类型必填说明
kindpathstring✅

请求体 ​

json
{
  "$ref": "#/components/schemas/RunComputationDto"
}

响应 ​

状态码说明
201

GET /computation/kinds ​

已注册的计算类型与版本

响应 ​

状态码说明
200

Released under the MIT License.