add rest api connection