Now able to call REST api