图片列表
GET
/explore/albums/{id}/photos请求参数
Path 参数
id
integer
相册ID
示例值:
5
Query 参数
page
integer
页码
per_page
integer
每页展示数量
q
string
筛选关键字
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
data
array [object {11}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"id": 9,
"name": "真正的程序员",
"intro": "",
"extension": "png",
"width": 571,
"height": 512,
"is_liked": false,
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"public_url": "http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"tags": [],
"user": {
"id": 1,
"name": "admin",
"username": "admin2",
"is_admin": true,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg"
}
},
{
"id": 10,
"name": "IMG_0439111",
"intro": "223331111",
"extension": "png",
"width": 1170,
"height": 2532,
"is_liked": true,
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"public_url": "http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"tags": [
{
"id": 3,
"name": "123"
},
{
"id": 4,
"name": "213"
},
{
"id": 5,
"name": "4123"
},
{
"id": 6,
"name": "222"
},
{
"id": 7,
"name": "2222"
},
{
"id": 8,
"name": "423"
},
{
"id": 9,
"name": "412"
},
{
"id": 10,
"name": "4324"
},
{
"id": 11,
"name": "111111"
}
],
"user": {
"id": 1,
"name": "admin",
"username": "admin2",
"is_admin": true,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg"
}
},
{
"id": 12,
"name": "ChMkJlbKwdSIBXyaABDQ5_X5vbEAALGegFJFcIAEND_912",
"intro": "",
"extension": "jpg",
"width": 1920,
"height": 1200,
"is_liked": false,
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg",
"public_url": "http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg",
"tags": [],
"user": {
"id": 1,
"name": "admin",
"username": "admin2",
"is_admin": true,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg"
}
},
{
"id": 13,
"name": "IMG_1499",
"intro": "",
"extension": "png",
"width": 1170,
"height": 2532,
"is_liked": false,
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/6fc44935eb88b1434a73b0e1ed05bde0.PNG",
"public_url": "http://127.0.0.1:8000/uploads/20240919/6fc44935eb88b1434a73b0e1ed05bde0.PNG",
"tags": [],
"user": {
"id": 1,
"name": "admin",
"username": "admin2",
"is_admin": true,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg"
}
},
{
"id": 6,
"name": "a157829fe078dad9bbfd268ff1ec3b01",
"intro": "",
"extension": "jpg",
"width": 1080,
"height": 1080,
"is_liked": false,
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/f60751b682c4cdf0106d63aaf97ef9ba.jpeg",
"public_url": "http://127.0.0.1:8000/uploads/20240919/f60751b682c4cdf0106d63aaf97ef9ba.jpeg",
"tags": [],
"user": {
"id": 1,
"name": "admin",
"username": "admin2",
"is_admin": true,
"avatar_url": "http://127.0.0.1:8000/storage/avatars/qWc40VHTCggI2RaylMPfVhq4NOdI3ouUBf8SQJfO.jpg"
}
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/explore/albums/5/photos?page=1",
"last": "http://127.0.0.1:8000/api/v2/explore/albums/5/photos?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/explore/albums/5/photos?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/explore/albums/5/photos",
"per_page": 20,
"to": 5,
"total": 5
}
},
"time": 1730876140
}
最后修改时间: 1 个月前