用户主页信息
GET
/explore/users/{username}
请求参数
Path 参数
username
string
用户名
示例值:
admin2
Header 参数
Accept
string
可选
默认值:
application/json
示例代码
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:8000/api/v2/explore/users/admin2' \
--header 'Accept: application/json'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
id
integer
用户ID
avatar_url
string
必需
name
string
昵称
username
string
用户名
location
string
位置
bio
string
个性签名
interests
array[string]
兴趣爱好
socials
array[string]
必需
is_admin
boolean
是否为系统管理员
created_at
string
注册时间
photo_count
integer
创建的图片数量
album_count
integer
创建的相册数量
liked_photo_count
integer
喜欢的图片数量
liked_album_count
integer
喜欢的相册数量
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"id": 1,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg",
"name": "admin",
"username": "admin2",
"location": "1",
"bio": "1",
"interests": [
"32123",
"4123412412412",
"2",
"2",
"33"
],
"socials": [
"https://github.com",
"https://www.cos.cpm22"
],
"is_admin": true,
"created_at": "2024-08-31T16:32:34.000000Z",
"photo_count": 11,
"album_count": 10,
"liked_photo_count": 1,
"liked_album_count": 0
},
"time": 1730713266
}
修改于 2024-11-26 08:47:54