get restful data