The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
преди 4 години
преди 4 години
преди 4 години
123456789101112131415161718192021222324252627282930313233
  1. [
  2. {
  3. "comment": "define new role",
  4. "request": {
  5. "uri": "me/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": "me/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": "me/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. ]