Merge the REST functions into one dyanmic call.