Trying to  connect to Rest Api