版本:202201
查询文件 详情
GET/openapi/2022-01/file/:file_uri
Retrieve detailed metadata and access information about a specific file using its unique file_uri. This endpoint is commonly used to fetch file properties, such as the name, size, type, and access URL.
请求
Path参数
file_uri string必填
The unique identifier of the file. This must be a valid alphanumeric string representing the file’s URI.
响应
- 200
- 400
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
upload_linkstring
示例:
https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.pngfile_uristring
示例:
7ebb4faa8d92e1d627edf9ca61a98993.pngfolderstring
示例:
uploadsizeinteger
默认值:
0示例:
6842typestring
示例:
image/pngorigin_linkstring
示例:
descstring
示例:
aspect_ratiostring
示例:
1.2500000widthinteger
默认值:
0示例:
250heightinteger
默认值:
0示例:
200created_atstring
示例:
2024-04-23T09:32:57.090041356+08:00updated_atstring
示例:
2024-04-23T09:32:57.090041356+08:00{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57.090041356+08:00",
"updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57.090041356+08:00",
"updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring
示例:
request status not ok{
"errors": "request status not ok"
}
{ "errors": "request status not ok" }
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"data is null"
]
}
{
"errors": [
"data is null"
]
}