24 lines
468 B
YAML
24 lines
468 B
YAML
id: "upload_file"
|
|
request:
|
|
method: "POST"
|
|
path: "/api/v1/upload"
|
|
headers:
|
|
Content-Type: "multipart/form-data"
|
|
response:
|
|
status: 200
|
|
headers:
|
|
Content-Type: "application/json"
|
|
body: >
|
|
{
|
|
"code": 0,
|
|
"data": {
|
|
"filename": "example.txt",
|
|
"path": "storage/2024-01-15/example.txt",
|
|
"size": 1024,
|
|
"url": "/storage/2024-01-15/example.txt"
|
|
},
|
|
"msg": "upload success"
|
|
}
|
|
settings:
|
|
delay_ms: 100
|