Files
chongming_zenoh/config/workers/example/subtract.toml
T
2026-07-17 11:27:56 +08:00

8 lines
339 B
TOML

# subtract 接口
[GET]
summary = "Subtract two numbers"
docstring = "Subtract two numbers via GET query params (a - b)"
params = ["a: float", "b: float"]
response_model = { result = { type = "float", required = true }, operation = { type = "str", default = "subtract" }, timestamp = { type = "float", required = false, default = 0.0 } }