Working restFactory