�接口前缀 /api/blog
Get: /articles
Get: /articles/{文章ID}
POST: /articles
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
title | 是 | String | 标题 |
author | 否 | String | 作者 |
content | 是 | String | 内容 |
create_time | 是 | Int | 时间戳(秒) |
{
"title":"测试文章",
"content":"## 标题",
"author":"andesong",
"create_time":{{$timestamp}}
}
无
delete: /articles
| 必选| 类型| 说明 :---:|:---:|:---:|:---| ids | 是 | String[] | 要删出文章的id数组
delete: /articles/{文章ID}
| 必选| 类型| 说明 :---:|:---:|:---:|:---| title | 是 | String | 标题 author | 否 | String| 作者 content | 是 | String | 内容 update_time | 是 | Int | 文章更新时间戳(秒)