I have a scenario where I need to do a httpPost to save a value from the request parameter and then return some other fields for the same object fields using httpget.
So, my parameter would be something like this:
String opptyId = RestContext.request.params.get('opportunityId'); String nameOfComp = RestContext.request.params.get('newname');
Now, I need to update this field
nameOfComp from the request param based on
opportunityId from the req param.
Once the update is done, I need to get some more data from the same object including the
nameOfComp which i have inserted.
Can this be done within one service and single URL mapping?