跳至主要内容

GET /api/contracts/templates/:id

Return the complete template, including the JSON definition ready to deploy.

Auth

None.

Response — 200

{
"ok": true,
"template": {
"id": "force-threshold-alarm",
"name": "Force Threshold Alarm",
"category": "Mechanics",
"description": "...",
"use_cases": [ "..." ],
"operators_used": ["NM19","KO42"],
"definition": {
"name": "force_threshold_alarm",
"version": "1.0",
"states": { ... },
"transitions": [ ... ]
}
}
}

Errors

StatusBody
404Template not found

Curl

curl -sS https://zeqapi.com/api/contracts/templates/force-threshold-alarm