获取分享图片列表
GET
/shares/{slug}/photos请求参数
Path 参数
slug
string
必需
示例值:
8c9d47ea2c8146eab4bf4e6cef12af63
Query 参数
page
integer
页码
per_page
integer
每页展示数量
q
string
筛选关键字
password
string
密码
示例值:
22322
示例代码
返回响应
成功(200)
禁止访问(403)
记录不存在(404)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
data
array [object {11}]
必需
links
object
必需
meta
object
必需
is_valid
boolean
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"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"
}
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/shares/8c9d47ea2c8146eab4bf4e6cef12af63/photos?page=1",
"last": "http://127.0.0.1:8000/api/v2/shares/8c9d47ea2c8146eab4bf4e6cef12af63/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/shares/8c9d47ea2c8146eab4bf4e6cef12af63/photos?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/shares/8c9d47ea2c8146eab4bf4e6cef12af63/photos",
"per_page": 15,
"to": 1,
"total": 1
},
"is_valid": true
},
"time": 1730900230
}
最后修改时间: 1 个月前