Changing Controller to RestController