baseDataUrl(applet) {
          // e.g., https://zz.domain.com/api/v1/Customers
          let apiHost = ctx.app.$api.host;
          let apiPort = ctx.app.$api.port;
          let apiProtocol = 'http://';
          let basePath = ctx.app.$api.baseDataPath;

          if (['443', '80'].includes(apiPort)) {
            apiProtocol = apiPort === '443' ? 'https://' : 'http://';
            apiPort = ''; // no need to specify port in final URL in this case
          }

          let pluralModelName = ctx.app.$model.pluralName(this.model(applet));

          return `${apiProtocol}${apiHost}${apiPort ? `:${apiPort}` : ''}${basePath}/${pluralModelName}`;
        }
/**
         * Given an applet object return the corresponding API URL for getting data
         * @param {object} applet Applet object
         */
Given an applet object return the corresponding API URL for getting data
@param {object} applet Applet object
Given an applet object return the corresponding API URL for getting data @param { object } applet Applet object
baseDataUrl(applet) {
          let apiHost = ctx.app.$api.host;
          let apiPort = ctx.app.$api.port;
          let apiProtocol = 'http://';
          let basePath = ctx.app.$api.baseDataPath;
          if (['443', '80'].includes(apiPort)) {
            apiProtocol = apiPort === '443' ? 'https://' : 'http://';
            apiPort = ''; 
          }
          let pluralModelName = ctx.app.$model.pluralName(this.model(applet));
          return `${apiProtocol}${apiHost}${apiPort ? `:${apiPort}` : ''}${basePath}/${pluralModelName}`;
        }
baseDataUrl ( applet ) { let apiHost = ctx . app . $api . host ; let apiPort = ctx . app . $api . port ; let apiProtocol = 'http://' ; let basePath = ctx . app . $api . baseDataPath ; if ( [ '443' , '80' ] . includes ( apiPort ) ) { apiProtocol = apiPort === '443' ? 'https://' : 'http://' ; apiPort = '' ; } let pluralModelName = ctx . app . $model . pluralName ( this . model ( applet ) ) ; return ` ${ apiProtocol } ${ apiHost } ${ apiPort ? ` ${ apiPort } ` : '' } ${ basePath } ${ pluralModelName } ` ; }
Given an applet object return the corresponding API URL for getting data
 @param {object} applet Applet object
Given an applet object return the corresponding API URL for getting data @param { object } applet Applet object
// e.g., https://zz.domain.com/api/v1/Customers // no need to specify port in final URL in this case