Pass REST parameters to controller