- 定义支持“一接口一文件”与“一文件多接口”的数据模型 - 实现基于路径首段的 HashMap 索引构建逻辑 - 新增集成测试 tests/integration_test.rs,验证 YAML 解析与目录递归加载 - 优化 Cargo.toml 配置,解决连字符项目名引用问题
11 lines
335 B
YAML
11 lines
335 B
YAML
id: "prod_export_pdf"
|
|
request:
|
|
method: "GET"
|
|
path: "/api/v1/products/report"
|
|
response:
|
|
status: 200
|
|
headers:
|
|
Content-Type: "application/pdf"
|
|
Content-Disposition: "attachment; filename=report.pdf"
|
|
# 智能协议:引擎会自动识别前缀并异步读取磁盘文件
|
|
body: "file://./storage/reports/annual_2024.pdf" |