add RestFul Pattern to controller template