added a basic rest contoller