restful service sample