apim-pull.js
function getDataBasedOnCatalog(options, catalogs, models, cb) {

  async.each(catalogs,
    function(catalog, catcallback) {
      /* Next, go to APIs for each catalog */
      async.each(models,
        function(model, modelcallback) {
          pullDataFromEndp(options, catalog, model, function(err) {
            if (err) {
              logger.error(err);
            }
            modelcallback(err);
          });
        },
        function(err) {
          catcallback(err);
        });
    },
    function(err) {
      cb(err, response);
    }
  );
}
function getDataBasedOnCatalog(options, catalogs, models, cb) {

  async.each(catalogs,
    function(catalog, catcallback) {
      /* Next, go to APIs for each catalog */
      async.each(models,
        function(model, modelcallback) {
          pullDataFromEndp(options, catalog, model, function(err) {
            if (err) {
              logger.error(err);
            }
            modelcallback(err);
          });
        },
        function(err) {
          catcallback(err);
        });
    },
    function(err) {
      cb(err, response);
    }
  );
}
function getDataBasedOnCatalog ( options , catalogs , models , cb ) { async . each ( catalogs , function ( catalog , catcallback ) { /* Next, go to APIs for each catalog */ async . each ( models , function ( model , modelcallback ) { pullDataFromEndp ( options , catalog , model , function ( err ) { if ( err ) { logger . error ( err ) ; } modelcallback ( err ) ; } ) ; } , function ( err ) { catcallback ( err ) ; } ) ; } , function ( err ) { cb ( err , response ) ; } ) ; }
Fetches data from APIm for each catalog
such as APIs, products and subscriptions
Fetches data from APIm for each catalog such as APIs products and subscriptions