DDF-117: Added callback support to rest and opensearch endpoints