whole_func_string: function fetchData(url, options) {
      let {method = 'GET'} = options || {};
      method = method.toUpperCase();
  
      return httpApi.request(Object.assign({url}, options, {method}));
  }
func_code_string: function fetchData(url, options) {
      let {method = 'GET'} = options || {};
      method = method.toUpperCase();
  
      return httpApi.request(Object.assign({url}, options, {method}));
  }
func_documentation_string: Fetch data by the given url and options
  
  @param {string} url the url to fetch
  @param {Object=} options the fetch options
  @return {Promise}