Admin-audit-rule

Api:/api/admin/audit/rule

Methods:GET, POST, PUT, PATCH, DELETE

Permission:unlimited

Login auth:Yes

Request and parameters:

  1. """
  2. GET:
  3. 1. 获取所有验证规则
  4. project:<str>, "username", "post_category",
  5. keyword:<str>,不能使用的关键词,支持正则
  6. page:<int>, 第几页, 默认1
  7. pre:<int>, 每页返回pre条数据,默认10
  8. :return:
  9. POST:
  10. 添加验证规则
  11. project:<str>, "username", "post_category"
  12. rule:<str>
  13. :return:
  14. DELETE:
  15. 删除规则
  16. ids:<array>, rule ids
  17. :return: