- auth
- fs
- public
- admin
列出所有用户
正式环境
正式环境
GET
/api/admin/user/list
最后修改时间:2024-05-17 05:28:54
责任人:未设置
请求参数
Header 参数
Authorization
string
必需
示例值:
{{alist_token}}
示例代码
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://prod-cn.your-api-server.com/api/admin/user/list' \
--header 'Authorization: {{alist_token}}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
信息
data
object
必需
content
array [object {8}]
必需
total
integer
总数
示例
{
"code": 200,
"message": "success",
"data": {
"content": [
{
"id": 1,
"username": "admin",
"password": "",
"base_path": "/",
"role": 2,
"disabled": false,
"permission": 0,
"sso_id": ""
},
{
"id": 2,
"username": "guest",
"password": "",
"base_path": "/",
"role": 1,
"disabled": true,
"permission": 0,
"sso_id": ""
},
{
"id": 3,
"username": "N",
"password": "",
"base_path": "/",
"role": 0,
"disabled": false,
"permission": 256,
"sso_id": ""
}
],
"total": 3
}
}
修改于 2024-05-17 05:28:54