博客
博客属性
id
[number]
是
title
标题
[string]
是
summary
摘要
[string]
是
content
内容/正文
[string]
是
cover_id
封面id
[number]
是
author
作者
[string]
是
seo_title
seo标题
[string]
是
seo_description
seo描述
[string]
是
seo_slug
seo slug
[string]
是
status
状态:1-隐藏,2-可见
[number]
是
visible_at
可见时间
[string]
是
created_at
创建时间
[string]
是
updated_at
更新时间
[string]
是
public_url
预览url
[string]
是
path
路径
[string]
是
cover
关联封面
[object]
是
collections
分类集合
[array]
是
{
"data": [{
"id": "",
"title": "标题",
"summary": "摘要",
"content": "内容/正文",
"cover_id": "封面id",
"author": "作者",
"seo_title": "seo标题",
"seo_description": "seo描述",
"seo_slug": "seo slug",
"status": "状态:1-隐藏,2-可见",
"visible_at": "可见时间",
"created_at": "创建时间",
"updated_at": "更新时间",
"public_url": "预览url",
"path": "路径",
"cover": {
"ID": "",
"url": "",
"thumbnail": "",
"medium": "",
"big": "",
"srcset": ""
},
"collections": [{
"id": "",
"title": "标题",
"description": "描述",
"seo_title": "seo标题",
"seo_description": "seo描述",
"seo_slug": "seo slug",
"created_at": "",
"updated_at": "",
"blogs_count": "博客数量",
"pivot": {
"blog_id": "",
"collection_id": ""
}
}]
}]
"meta": {
"current_page": "当前页码",
"from": "当前页起始条数号",
"last_page": "尾页页码",
"path": "分页基本url",
"per_page": "每页显示条数",
"to": "当前页结束条数号",
"total": "数据总数"
},
"links": {
"first": "首页url",
"last": "尾页url",
"prev": "上一页url",
"next": "下一页url"
}
}
删除博客
DELETE
/openapi/2025-04/blogs/{id}
权限要求:write_content
Query Parameters
id
String
博客id
博客列表
GET
/openapi/2025-04/blogs
权限要求:read_content
Query Parameters
page
[string]
页码:有填写分页,不填写获取所有
sort
[string]
排序
include
[string]
包含关联,例如:collections
filter[exclude_ids]
[string]
排除ids,例如:18,22
filter[key]
[string]
关键字
filter[status]
[string]
状态
{
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "/api/admin/example",
"per_page": 15,
"to": 6,
"total": 6
},
"links": {
"first": "/api/admin/example?page=1",
"last": "/api/admin/example?page=1",
"prev": "/api/admin/example?page=1",
"next": "/api/admin/example?page=1"
},
"data": [{
"id": 17,
"title": "Dr.",
"summary": "Lockman Group",
"content": "<html><head><title>Vel perferendis qui fuga amet placeat.</title></head><body><form action=\"example.org\" method=\"POST\"><label for=\"username\">dolor</label><input type=\"text\" id=\"username\"><label for=\"password\">assumenda</label><input type=\"password\" id=\"password\"></form><div class=\"adipisci\"></div></body></html>\n",
"cover_id": 191572,
"author": "Dr. Orpha Bode Jr.",
"seo_title": "Mr.",
"seo_description": "Consectetur assumenda id provident consequatur quo impedit molestias. Dolorum possimus impedit voluptatibus et beatae rem nam. Aliquam doloremque est minima. Perspiciatis consequatur eos cum error non veniam dignissimos.",
"seo_slug": "dr-3",
"status": 2,
"visible_at": "2021-08-06 00:58:14",
"created_at": "2021-08-16 00:58:15",
"updated_at": "2021-08-16 00:58:15",
"public_url": "/",
"path": "",
"cover": {
"ID": 191572,
"url": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"thumbnail": "https://myshop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"medium": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"big": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"srcset": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg 400w"
},
"collections": [{
"id": 4,
"title": "Ms.",
"description": "Placeat officiis animi mollitia dignissimos eos non sit. Suscipit hic repellendus eaque eligendi quas et numquam. Sed minima ut fugit aliquid quasi sed dicta. Qui aut est similique ut consequatur rem id.",
"seo_title": "Ms.",
"seo_description": "Voluptas inventore doloribus voluptas quo iure quod id. Quis quia error at voluptates cum. Officia explicabo accusantium est saepe provident sed. Ut dicta hic sed aut dolor.",
"seo_slug": "ms-1",
"created_at": "2021-08-16 00:58:14",
"updated_at": "2021-08-16 00:58:14",
"blogs_count": 5,
"pivot": {
"blog_id": 17,
"collection_id": 4
}
}]
}]
}
添加博客
POST
/openapi/2025-04/blogs
权限要求:write_content
Request Body
seo_slug
String
seo slug
seo_description
String
seo描述
seo_title
String
seo标题
author
String
作者
cover_id
Number
封面id
content
String
内容/正文
summary
String
摘要
title
String
标题
collection_ids
Array
专辑集合id
visible_at
Datetime
可见时间
{
"id": 17,
"title": "Dr.",
"summary": "Lockman Group",
"content": "<html><head><title>Vel perferendis qui fuga amet placeat.</title></head><body><form action=\"example.org\" method=\"POST\"><label for=\"username\">dolor</label><input type=\"text\" id=\"username\"><label for=\"password\">assumenda</label><input type=\"password\" id=\"password\"></form><div class=\"adipisci\"></div></body></html>\n",
"cover_id": 191572,
"author": "Dr. Orpha Bode Jr.",
"seo_title": "Mr.",
"seo_description": "Consectetur assumenda id provident consequatur quo impedit molestias. Dolorum possimus impedit voluptatibus et beatae rem nam. Aliquam doloremque est minima. Perspiciatis consequatur eos cum error non veniam dignissimos.",
"seo_slug": "dr-3",
"status": 2,
"visible_at": "2021-08-06 00:58:14",
"created_at": "2021-08-16 00:58:15",
"updated_at": "2021-08-16 00:58:15",
"public_url": "/",
"path": "",
"cover": {
"ID": 191572,
"url": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"thumbnail": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"medium": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"big": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"srcset": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg 400w"
},
"collections": [{
"id": 4,
"title": "Ms.",
"description": "Placeat officiis animi mollitia dignissimos eos non sit. Suscipit hic repellendus eaque eligendi quas et numquam. Sed minima ut fugit aliquid quasi sed dicta. Qui aut est similique ut consequatur rem id.",
"seo_title": "Ms.",
"seo_description": "Voluptas inventore doloribus voluptas quo iure quod id. Quis quia error at voluptates cum. Officia explicabo accusantium est saepe provident sed. Ut dicta hic sed aut dolor.",
"seo_slug": "ms-1",
"created_at": "2021-08-16 00:58:14",
"updated_at": "2021-08-16 00:58:14",
"blogs_count": 5,
"pivot": {
"blog_id": 17,
"collection_id": 4
}
}]
}
博客详情
GET
/openapi/2025-04/blogs/{id}
权限要求:read_content
Query Parameters
id
String
博客id
{
"id": 17,
"title": "Dr.",
"summary": "Lockman Group",
"content": "<html><head><title>Vel perferendis qui fuga amet placeat.</title></head><body><form action=\"example.org\" method=\"POST\"><label for=\"username\">dolor</label><input type=\"text\" id=\"username\"><label for=\"password\">assumenda</label><input type=\"password\" id=\"password\"></form><div class=\"adipisci\"></div></body></html>\n",
"cover_id": 191572,
"author": "Dr. Orpha Bode Jr.",
"seo_title": "Mr.",
"seo_description": "Consectetur assumenda id provident consequatur quo impedit molestias. Dolorum possimus impedit voluptatibus et beatae rem nam. Aliquam doloremque est minima. Perspiciatis consequatur eos cum error non veniam dignissimos.",
"seo_slug": "dr-3",
"status": 2,
"visible_at": "2021-08-06 00:58:14",
"created_at": "2021-08-16 00:58:15",
"updated_at": "2021-08-16 00:58:15",
"public_url": "/",
"path": "",
"cover": {
"ID": 191572,
"url": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"thumbnail": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg", "medium": "https://wshop-s3.frp.codefriend.top/wshop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"big": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"srcset": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg 400w"
},
"collections": [{
"id": 4,
"title": "Ms.",
"description": "Placeat officiis animi mollitia dignissimos eos non sit. Suscipit hic repellendus eaque eligendi quas et numquam. Sed minima ut fugit aliquid quasi sed dicta. Qui aut est similique ut consequatur rem id.",
"seo_title": "Ms.",
"seo_description": "Voluptas inventore doloribus voluptas quo iure quod id. Quis quia error at voluptates cum. Officia explicabo accusantium est saepe provident sed. Ut dicta hic sed aut dolor.",
"seo_slug": "ms-1",
"created_at": "2021-08-16 00:58:14",
"updated_at": "2021-08-16 00:58:14",
"blogs_count": 5,
"pivot": {
"blog_id": 17,
"collection_id": 4
}
}]
}
更新博客
PUT
/openapi/2025-04/blogs/{id}
权限要求:write_content
Query Parameters
id
String
博客id
Request Body
summary
String
摘要
title
String
标题
content
String
内容/正文
cover_id
Number
封面id
author
String
作者
seo_title
String
seo标题
seo_description
String
seo描述
seo_slug
String
seo slug
visible_at
Datetime
可见时间
collection_ids
Array
专辑集合id
{
"id": 17,
"title": "Dr.",
"summary": "Lockman Group",
"content": "<html><head><title>Vel perferendis qui fuga amet placeat.</title></head><body><form action=\"example.org\" method=\"POST\"><label for=\"username\">dolor</label><input type=\"text\" id=\"username\"><label for=\"password\">assumenda</label><input type=\"password\" id=\"password\"></form><div class=\"adipisci\"></div></body></html>\n",
"cover_id": 191572,
"author": "Dr. Orpha Bode Jr.",
"seo_title": "Mr.",
"seo_description": "Consectetur assumenda id provident consequatur quo impedit molestias. Dolorum possimus impedit voluptatibus et beatae rem nam. Aliquam doloremque est minima. Perspiciatis consequatur eos cum error non veniam dignissimos.",
"seo_slug": "dr-3",
"status": 2,
"visible_at": "2021-08-06 00:58:14",
"created_at": "2021-08-16 00:58:15",
"updated_at": "2021-08-16 00:58:15",
"public_url": "/",
"path": "",
"cover": {
"ID": 191572,
"url": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"thumbnail": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"medium": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"big": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg",
"srcset": "https://shop-s3.frp.codefriend.top/shop-develop/2021/06/7071865d1594460016aa3476e2b74f9f.jpg 400w"
},
"collections": [{
"id": 4,
"title": "Ms.",
"description": "Placeat officiis animi mollitia dignissimos eos non sit. Suscipit hic repellendus eaque eligendi quas et numquam. Sed minima ut fugit aliquid quasi sed dicta. Qui aut est similique ut consequatur rem id.",
"seo_title": "Ms.",
"seo_description": "Voluptas inventore doloribus voluptas quo iure quod id. Quis quia error at voluptates cum. Officia explicabo accusantium est saepe provident sed. Ut dicta hic sed aut dolor.",
"seo_slug": "ms-1",
"created_at": "2021-08-16 00:58:14",
"updated_at": "2021-08-16 00:58:14",
"blogs_count": 5,
"pivot": {
"blog_id": 17,
"collection_id": 4
}
}]
}
博客批量操作
POST
/openapi/2025-04/blogs/batch
权限要求:write_content
Request Body
ids
Array
博客ids
select_all
Boolean
是否选择全部
operate*
Object
操作
filter[status]
String
状态
filter[key]
String
关键字
{
// Response
}
Last updated