integrate with restful service