Restful service tutorial