Version your Oracle ORDS REST API using Edition Based Redefinition

Updated, May 4 2017: New approach One of the last entries in my blog described how I could quickly publish all
random_ninja functions as rest endpoints
. While I am still waiting for the ORDS team at Oracle to come out with automatic
publish of functions and procedures including input parameters, I wanted to add another layer of functionality to my REST endpoints.
Versioning; And for that we can use the cool Oracle feature called Edition Based Redefinition.