added restful services,controllers and test cases