用户登录
开发中POST
/user/session最后修改时间: 6 个月前
请求参数
Body 参数application/json
userName
string
登录邮箱
Password
string
登录密码
captchaCode
string
人机验证信息
示例
{
"userName": "admin@cloudreve.org",
"Password": "123456",
"captchaCode": ""
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
请求状态
data
#/definitions/95455409必需
msg
string
错误信息
示例
{
"code": 0,
"data": {
"id": "l6hY",
"user_name": "admin@cloudreve.org",
"nickname": "admin",
"status": 0,
"avatar": "",
"created_at": "2024-05-01T11:04:25.490486+08:00",
"preferred_theme": "",
"anonymous": false,
"group": {
"id": 1,
"name": "Admin",
"allowShare": true,
"allowRemoteDownload": true,
"allowArchiveDownload": true,
"shareDownload": true,
"compress": true,
"webdav": true,
"sourceBatch": 1000,
"advanceDelete": true,
"allowWebDAVProxy": false
},
"tags": []
},
"msg": ""
}
最后修改时间: 6 个月前