- auth
- fs
- public
- admin
搜索文件或文件夹
正式环境
http://prod-cn.your-api-server.com
正式环境
http://prod-cn.your-api-server.com
POST
/api/fs/search
alist Copy/fs
最后修改时间:2024-05-17 08:31:38
责任人:未设置
请求参数
Header 参数
Authorization
string
必需
示例值:
{{alist_token}}
Body 参数application/json
parent
string
搜索目录
keywords
string
关键词
scope
integer
搜索类型
>= 0<= 2
默认值:
0
示例值:
0
page
integer
页数
per_page
integer
每页数目
password
string
密码
示例
{
"parent": "/local",
"keywords": "test",
"scope": 0,
"page": 1,
"per_page": 1,
"password": ""
}
示例代码
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/search' \
--header 'Authorization: {{alist_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent": "/local",
"keywords": "test",
"scope": 0,
"page": 1,
"per_page":1 ,
"password": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
信息
data
object
必需
content
array [object {5}]
必需
total
integer
总数
示例
{
"code": 200,
"message": "success",
"data": {
"content": [
{
"parent": "/m",
"name": "4305da1e",
"is_dir": false,
"size": 393090,
"type": 0
}
],
"total": 1
}
}