#3101 update REST process to use promise instead of callback
Merge issue #3101