Content-category

Api:/api/content/category

Methods:GET, POST, PUT, DELETE

Permission:unlimited

Login auth:Yes

Request and parameters:

  1. """
  2. GET:
  3. action:<str>, 可以为get_category, get_category_type, 默认get_category
  4. 1.获取当前用户指定的type的所有category
  5. action:<str>, 为get_category
  6. type:<str>, 你设置的那几个类别中的类别,在config.py文件中category, 可在网站管理端设置的
  7. 2. 获取所有的type: config.py文件中category的所有CATEGORY TYPE
  8. action:<str>, 为get_category_type
  9. 解释:
  10. 在分类中(category)又分为几种类型(type)
  11. 如: type为post有几个category
  12. POST:
  13. 添加文集
  14. name:<str>
  15. type:<str>, 只能是你设置的那几个类别,在config.py文件中category, 或者网站管理设置
  16. PUT:
  17. 修改文集
  18. id:<str>, post category id
  19. name:<str>
  20. DELETE:
  21. 删除文集名称
  22. ids:<array>, post category ids