Files
TJWaterServerBinary/.github/skills/business/project-workspace/snapshots/SKILL.md
T
2026-03-27 13:05:22 +08:00

44 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: api-operations-business-project-workspace-snapshots
description: business/project-workspace 场景下 snapshots 操作接口。
version: 1.0.0
---
# 何时使用
当你只需要处理 **snapshots** 相关接口时,使用本技能。
# 输入要求
- 可选:`BASE_URL`(默认 `http://127.0.0.1:8000`
- 可选:`AUTH_TOKEN`(按环境鉴权策略)
- 覆盖方法:`GET`, `POST`
# 操作列表
- `POST /api/v1/batch/` - 执行批量命令
- `POST /api/v1/compressedbatch/` - 执行压缩批量命令
- `GET /api/v1/getcurrentoperationid/` - 获取当前操作ID
- `GET /api/v1/getrestoreoperation/` - 获取恢复操作ID
- `GET /api/v1/getsnapshots/` - 获取快照列表
- `GET /api/v1/havesnapshot/` - 检查快照是否存在
- `GET /api/v1/havesnapshotforcurrentoperation/` - 检查当前操作快照是否存在
- `GET /api/v1/havesnapshotforoperation/` - 检查操作快照是否存在
- `POST /api/v1/pickoperation/` - 选择操作
- `POST /api/v1/picksnapshot/` - 选择快照
- `POST /api/v1/redo/` - 重做操作
- `POST /api/v1/setrestoreoperation/` - 设置恢复操作ID
- `GET /api/v1/syncwithserver/` - 与服务器同步
- `POST /api/v1/takenapshotforcurrentoperation` - 为当前操作创建快照(兼容模式)
- `POST /api/v1/takesnapshot/` - 创建快照
- `POST /api/v1/takesnapshotforcurrentoperation` - 为当前操作创建快照
- `POST /api/v1/takesnapshotforoperation/` - 为操作创建快照
- `POST /api/v1/undo/` - 撤销操作
# See Also
- 关联场景: `../`
- 关联总览: `../../../SKILL.md`
- 关联网络资产: `../network-assets`
- 关联时序数据: `../../data/timeseries-access`