Hi, I'm creating an ORDS RESTful POST Service in APEX SQL Workshop RESTful services.
I'm testing it in Postman, it runs fine. Depending on parameters passed, either a record is inserted or updated or nothing happens when no match. In all cases I'm getting a status 200 success.
My question is how can I configure it to return a custom user message indicating what happened - ie either insert, update or no match found. I already capture this information, but I don't know how to pass it back from the Post Handler to the caller.
I can't seem to get it done using OUT parameters, but HTP.print works and message is displayed in the body.
Could you please point me in the right direction.
Thanks in advance