- normalize_yaml_body 函数在解析 JSON 前添加 trim() 处理,解决 YAML `|` 和 `>` 语法产生的前导空格问题 - 修复 multiple_login.yaml 中 response body 格式错误(YAML 对象改为 JSON 字符串)
14 lines
342 B
YAML
14 lines
342 B
YAML
# 下载用户数据文件 - file:// 协议
|
|
name: "user_download"
|
|
request:
|
|
method: "GET"
|
|
path: "/v1/user/download"
|
|
query_params:
|
|
format: "json"
|
|
response:
|
|
status: 200
|
|
headers:
|
|
Content-Type: "application/octet-stream"
|
|
Content-Disposition: "attachment; filename=user_data.json"
|
|
body: "file://./storage/v1/user_data.json"
|