12 lines
382 B
YAML
12 lines
382 B
YAML
id: "prod_export_pdf"
|
|
request:
|
|
method: "GET"
|
|
path: "/api/v1/products/report"
|
|
body: '{"username":"user","password":"123"}'
|
|
response:
|
|
status: 200
|
|
headers:
|
|
Content-Type: "application/pdf"
|
|
Content-Disposition: "attachment; filename=report.pdf"
|
|
# 智能协议:引擎会自动识别前缀并异步读取磁盘文件
|
|
body: "file://./storage/reports/annual_2024.pdf" |