Baby approach to connect to rest server