图片详情
GET
/explore/photos/{id}
请求参数
Path 参数
id
integer
图片ID
示例值:
10
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/photos/10' \
--header 'Accept: application/json'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
id
integer
图片ID
name
string
名称
intro
string
简介
extension
string
拓展名
width
integer
宽度
height
integer
高度
is_liked
boolean
当前用户是否点赞了
thumbnail_url
string
缩略图链接
public_url
string
图片链接
tags
array [object {2}]
标签
user
object
用户信息
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"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"
}
},
"time": 1730796155
}
修改于 2024-11-26 08:47:54