ENH: Add a helper method for restful requests