Michiel Rop pushed to branch feature/wpm at cms-community / 
hippo-addon-channel-manager


Commits:
4f9716fa by Michiel Rop at 2017-04-25T09:28:41+02:00
CHANNELMGR-1240 Change HTTP method and parameter

In order to make the channel manager REST API adhere to the REST
standards as much as practically feasible for now, make the methods use
PUT instead of POST and move the branchId from a parameter to a url
parameter.

- - - - -


1 changed file:

- frontend-ng/src/angularjs/services/project.service.js


Changes:

=====================================
frontend-ng/src/angularjs/services/project.service.js
=====================================
--- a/frontend-ng/src/angularjs/services/project.service.js
+++ b/frontend-ng/src/angularjs/services/project.service.js
@@ -36,15 +36,15 @@ class ProjectService {
   }
 
   doCreateBranch(project) {
-    this.HstService.doPut(project.id, 
this.ChannelService.getChannel().mountId, 'createbranch');
+    this.HstService.doPut(null, this.ChannelService.getChannel().mountId, 
'createbranch', project.id);
   }
 
   doSelectBranch(project) {
-    this.HstService.doPost(project.id, 
this.ChannelService.getChannel().mountId, 'selectbranch');
+    this.HstService.doPut(null, this.ChannelService.getChannel().mountId, 
'selectbranch', project.id);
   }
 
   doSelectMaster() {
-    this.HstService.doPost(null, this.ChannelService.getChannel().mountId, 
'selectmaster');
+    this.HstService.doPut(null, this.ChannelService.getChannel().mountId, 
'selectmaster');
   }
 
 }



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/4f9716fa3c83a3c92b028dafa88a61c412e4de06
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to