start conection to rest api