fix restful service