I am writing web services for my application. my problem is that when I call it using the GET method, it works, but when I use the POST method, the parameters do not contain ant of my parameters:
when I call with GET, this is the contents of the parameters:
params : [username:azerty, test:test, param2:param2, action:editProfile, controller:userWebService]
when I call using POST, this is the contents of the parameters:
params : [action:editProfile, controller:userWebService]
EDIT:
/* user controller */ "/service/$action?"(controller: "userWebService", parseRequest: true)
in UserWebServiceController
.... static allowedMethods = [editProfile:['POST', 'GET']] .... def editProfile(){ println "params : "+ params .... }
to verify that I am using the REST console plugin in chrome

source share