add rest query to remote server