Yupe you're right Dave. PUT is working all good and definitely better to
use PUT for updates. Changed back from POST to PUT

On Sat, Jan 26, 2013 at 5:03 PM, David Sanders <notifications@github.com>wrote:

> In omod/src/main/webapp/resources/services.js:
>
> > @@ -3,7 +3,9 @@ define(['angular', 'config', 'angular-resource'], function(angular, config) {
> >    var services = angular.module('cpm.services', ['ngResource']);
> >
> >    services.factory('Proposals', ['$resource', function($resource) {
> > -    return $resource(config.contextPath + '/ws/cpm/proposals/:proposalId', {proposalId:'@id'}, {update: {method: 'PUT'}});
> > +  	//http PUT doesnt work as we need to use Spring's HiddenHttpMethodFilter on web.xml on the war
>
> Actually PUT is working :) We've been using PUT to update resources which
> is actually getting passed to our update method in the controller.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/johnsyweb/openmrs-cpm/pull/3/files#r2784248>.
>
>