The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

33 行
832 B

  1. [
  2. {
  3. "comment": "define new role",
  4. "request": {
  5. "uri": "roles",
  6. "method": "put",
  7. "entityJson": "<<escaped_json role>>"
  8. },
  9. "response": {
  10. "store": "newRole"
  11. }
  12. },
  13. {
  14. "comment": "update default roles for domain",
  15. "request": {
  16. "uri": "domains/<<domain>>/roles/<<update_role>>",
  17. "method": "post",
  18. "entityJson": "<<escaped_json role>>"
  19. }
  20. },
  21. {
  22. "comment": "list roles for domain, verify old role is gone and new role is present",
  23. "request": { "uri": "domains/<<domain>>/roles" },
  24. "response": {
  25. "check": [
  26. {"condition": "_find(json, function(roleName) { return roleName == '<<role.name>>'; }) != null "},
  27. {"condition": "_find(json, function(roleName) { return roleName == '<<update_role>>'; }) == null "}
  28. ]
  29. }
  30. }
  31. ]