User-post

Api:/api/user/post

Methods:POST, PUT, PATCH, DELETE

Permission:unlimited

Login auth:Yes

Request and parameters:

  1. """
  2. POST:
  3. 内容发布
  4. title:<str>, 标题
  5. content:<str>, 内容(比如:富文本的html内容),将会保存到数据库中
  6. conetent_text:<str>, 纯文本内容
  7. editor:<str>, 使用的编辑器类型, "markdown" or "rich_text"
  8. tags:<array>, 标签
  9. category:<str>, post category id. post分类
  10. cover_url:<str>,文章封面图url,默认为空
  11. issue_way:<str>, 可选'issue' or 'save'. 发布或者保存为草稿
  12. PUT or PATCH:
  13. 1.内容修改
  14. id:<str>, 编辑已有的文章需要传入id, 新建文章不需要
  15. title:<str>, 标题
  16. content:<str>, 内容(比如:富文本的html内容),将会保存到数据库中
  17. conetent_text:<str>, 纯文本内容
  18. editor:<str>, 使用的编辑器类型, "markdown" or "rich_text"
  19. tags:<array>, 标签
  20. category:<str>, post category id. post分类
  21. issue_way:<str>, 可选'issue' or 'save'. 发布或者保存为草稿
  22. 2.恢复回收站的post
  23. op:<str>, restore
  24. ids:<array>, posts id
  25. DELETE:
  26. 删除post
  27. ids:<array>, posts id
  28. recycle:<int>,1 or 0, 1:则移入回收站, 0: 则直接标记为永久删除, 管理员才可见

*## Api文档说明