whistle_mock_create
Create a complete mock for a URL pattern by automatically generating a matching rule and response value, then enabling it immediately. Configure response data, status code, headers, delay, and optional rule name.
Instructions
一键创建完整 Mock 方案:自动生成 Value(存储响应数据)+ 规则(匹配 URL),并立即启用
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | 响应延迟(毫秒) | |
| headers | No | 自定义响应头 | |
| pattern | Yes | URL 匹配模式,如 api.example.com/user 或 */api/user | |
| response | Yes | Mock 响应的 JSON 数据 | |
| ruleName | No | 自定义规则名称(可选,默认自动生成) | |
| statusCode | No | HTTP 状态码 |