update nx.RestCollection to work with the new nx.Collection API