restful service stub