Implemented restful controller