- auth
- fs
- public
- admin
列出文件目录
正式环境
正式环境
POST
/api/fs/list
alist Copy/fs
最后修改时间:2024-05-17 07:51:08
责任人:未设置
请求参数
Header 参数
Authorization
string
必需
示例值:
{{alist_token}}
Body 参数application/json
path
string
路径
password
string
密码
page
integer
页数
per_page
integer
每页数目
refresh
boolean
是否强制刷新
示例
{
"path": "/t",
"password": "",
"page": 1,
"per_page": 0,
"refresh": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/api/fs/list' \
--header 'Authorization: {{alist_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"path": "/t",
"password": "",
"page": 1,
"per_page": 0,
"refresh": false
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
信息
data
object
必需
content
array [object {10}]
内容
total
integer
总数
readme
string
说明
write
boolean
是否可写入
provider
string
必需
header
string
必需
示例
{
"code": 200,
"message": "success",
"data": {
"content": [
{
"name": "Alist V3.md",
"size": 1592,
"is_dir": false,
"modified": "2024-05-17T13:47:55.4174917+08:00",
"created": "2024-05-17T13:47:47.5725906+08:00",
"sign": "",
"thumb": "",
"type": 4,
"hashinfo": "null",
"hash_info": null
}
],
"total": 1,
"readme": "",
"header": "",
"write": true,
"provider": "Local"
}
}
修改于 2024-05-17 07:51:08