Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
API 文档
- OpenAPI 3:
openapi.yaml - 实现:
routes/api.php→/api/v1/* - 阶段:一期以只读内容接口为主,供小程序/H5/其他端拉取文章、分类、标签与站点信息
快速试
curl -s http://larablog.test/api/v1/meta | jq
curl -s http://larablog.test/api/v1/articles | jq
curl -s http://larablog.test/api/v1/articles/1 | jq
Swagger UI
仓库不强制绑定某一 UI 实现。可任选:
- 把
openapi.yaml导入 Swagger Editor - 自建静态页引用 swagger-ui(二期可加
l5-swagger/scramble)
鉴权(规划)
写接口(发评论、会员、支付回调)将走 Bearer Token / 小程序 session;一期未开放写操作。