fastadmin开发手册

新增文档


用于写入文章内容

请求URL


http://www.yoursite.com/addons/cms/api.archives/add

请求方法


POST

请求参数


| Body参数名 | 类型 | 必需 | 描述 | 示例 |
| --- | --- | --- | --- | --- |
| apikey | string | 是 | API密钥值 | 无 |
| channel | int | 是 | 栏目ID | 1 |
| title | string | 是 | 文档标题 | 测试标题 |
| content | string | 是 | 文档内容 | 测试内容 |
| image | string | 否 | 缩略图 | /assets/img/qrcode.png |
| images | string | 否 | 组图 | /assets/img/qrcode.png,/assets/img/qrcode.png |
| tags | string | 否 | 标签,逗号分隔 | 标签1,标签2 |
| user_id | string | 否 | 会员ID,不填写默认为后台管理员发布 | 1 |
| 副表字段 | string | 否 | 副表字段根据模型进行添加 | 无 |

返回值


``json
{
"code": 1,
"msg": "新增成功",
"data": {
"id": 152
}
}
``

10 Screens$8,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery 1 Revision
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages

20 Screens$16,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages

30 Screens$24,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages
0.875463s