文件列表 (List)
Method: GET
Endpoint:
/api/v1/files
请求参数
四个查询参数都必填:
| 参数 | 类型 | 说明 |
|---|---|---|
offset |
Integer | 非负整数,分页偏移 |
limit |
Integer | 正整数,每页数量 |
sortDirection |
String | asc / desc |
sortBy |
String | 目前只支持 uTime |
请求示例:
GET /api/v1/files?offset=0&limit=20&sortDirection=desc&sortBy=uTime
响应示例
{
"data": [
{
"filesId": 1,
"hash": "完整 sha256",
"uTime": 1762300000,
"owner": 1
}
],
"meta": {
"total": 1,
"offset": 0,
"limit": 20,
"sortBy": "uTime",
"sortDirection": "desc"
}
}