相册详情
GET
/user/albums/{id}
请求参数
Path 参数
id
integer
相册ID
示例值:
3
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{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://127.0.0.1:8000/api/v2/user/albums/3' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
id
integer
相册ID
name
string
名称
intro
string
简介
is_public
boolean
是否公开
created_at
string
创建时间
photo_count
integer
图片数量
covers
array[string]
必需
tags
array[string]
标签
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"id": 1,
"name": "test2",
"intro": "11112\n314",
"is_public": false,
"created_at": "2024-09-20T07:57:01.000000Z",
"photo_count": 1,
"covers": [
"http://127.0.0.1:8000/uploads/20240905/2afba671098674026525895187e29c16.png"
],
"tags": []
},
"time": 1727143278
}
修改于 2024-11-26 08:47:54