whistle_rule_set
Create or update a Whistle rule with a unique name and content using Whistle rule syntax, and optionally enable it immediately for API mocking.
Instructions
创建或更新规则。规则内容使用 whistle 规则语法,如:pattern resBody://{valueName}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 规则名称(唯一标识) | |
| enable | No | 是否立即启用该规则 | |
| content | Yes | 规则内容,如:api.example.com/user resBody://{mock_data} |