文档
提示词接口
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/prompts | 获取提示词列表(支持分页、搜索、过滤) |
| POST | /api/prompts | 创建新提示词 |
| GET | /api/prompts/:id | 获取单个提示词详情(并计数 +1) |
| PATCH | /api/prompts/:id | 更新提示词(仅传需要修改的字段) |
| DELETE | /api/prompts/:id | 删除提示词 |
| GET | /api/prompts/search | 关键词 / 语义搜索提示词 |
| GET | /api/prompts/sync | 全量或增量拉取(离线同步) |
查询参数(GET /api/prompts)
| 参数 | 类型 | 说明 |
|---|---|---|
| limit | number | 每页数量,默认 50,最大 200 |
| offset | number | 分页偏移量 |
| q | string | 关键词搜索(name / description / content) |
| category | string | 按分类过滤 |
| org_id | string | 按工作区 ID 过滤 |