A generic module for using restful APIs