列目录
开发中
GET
/directory{path}
最后修改时间:2024-04-30 14:03:59
请求参数
Path 参数
path
string
必需
示例值:
%2F
Cookie 参数
cloudreve-session
string
鉴权session
默认值:
{{cloudreve-session}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:5212/api/v3/directory%2F' \
--header 'Cookie: cloudreve-session='
返回响应
🟢200成功
application/json
Body
code
integer
响应状态
data
object
必需
parent
string
必需
objects
array[object (Object) {9}]
文件列表
policy
object (Policy)
必需
msg
string
错误信息
示例
{
"code": 0,
"data": {
"parent": "9zh3",
"objects": [
{
"id": "bbTL",
"name": "my_folder",
"path": "/",
"thumb": false,
"size": 0,
"type": "dir",
"date": "2024-05-01T11:19:12.1733916+08:00",
"create_date": "2024-05-01T11:19:12.1733916+08:00",
"source_enabled": false
},
{
"id": "j6hJ",
"name": "yixiangzhilv.com.zone",
"path": "/",
"thumb": false,
"size": 1597,
"type": "file",
"date": "2024-04-30T15:25:46.424+08:00",
"create_date": "2024-05-01T11:05:21.8852154+08:00",
"source_enabled": false
}
],
"policy": {
"id": "z3hJ",
"name": "Default storage policy",
"type": "local",
"max_size": 0,
"file_type": []
}
},
"msg": ""
}
修改于 2024-04-30 14:03:59