Computation API
由
scripts/generate-api-docs.ts自动生成 —— 请勿手改 共 3 个端点
GET /computation/{kind}/history
运行历史(倒序)
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
kind | path | string | ✅ | |
limit | query | string | — |
响应
| 状态码 | 说明 |
|---|---|
| 200 |
POST /computation/{kind}/run
执行计算(带缓存与幂等)
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
kind | path | string | ✅ |
请求体
json
{
"$ref": "#/components/schemas/RunComputationDto"
}响应
| 状态码 | 说明 |
|---|---|
| 201 |
GET /computation/kinds
已注册的计算类型与版本
响应
| 状态码 | 说明 |
|---|---|
| 200 |