I wrote a web service using @RestResource With both Get and Post methods.
When I try to send a request via workbench - everything works great,
but when I try to send a post request using other tools - like Postman or SoapUI or other online tools -
it always goes to the GET methods even though I picked POST as the method.
BTW - the GET method is working fine.
@RestResource(urlMapping = '/Tranzilasa/*')
global class WebServiceaaa {
@HttpPost
global static String oppToUpdate() {
System.debug('POST');
}
@HttpGet
global static String opptoUpdateSync(){
System.debug('GET');
}
}
After sending this request I get "GET" in the debug - instead of "POST".
If I using Workbench tool - I get "POST" as is need to be.