:body was intended to make the request body avail to the handlers...not the pre-hook, so I doubt it would work, but I can try it out...i'm assuming you've already tried this and it's not working? If that's the case, this would be an ER and not a bug
the ORDS prehook function is an "ordinary" compiled PLSQL function, so the compilation of the function would fail, if I would use the :body implicit parameter, I'm pretty sure.
To include logging on every endpoint is clunky, and available only for PLSQL handlers.
Other than that, it would be nice to also have a posthook function, which could have access to the whole response of the handler, prior to handling the response to the client.
>>so the compilation of the function would fail,
Sorry, you lost me ... what is being compiled during your REST call?
You mean the call out to the implicit :body would fail? Yes, i'm pretty sure that would not work.
I was trying to say that the :body variable can't be used in the prehook function.
So the conclusion would be that for now, it's not possible to get the http request body in the prehook function.