added restful service implementation