implement RestCtrl.create