basic rest service with two test cases