Making it work with REST