How to use the loopback-connector-rest.initialize function in loopback-connector-rest

To help you get started, we’ve selected a few loopback-connector-rest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yantrashala / loopback-connector-flexirest / index.js View on Github external
defintion.file = templateFile;

           if(defintion && defintion.template && defintion.functions) {
               // file is a template json file
               debug('Adding template to settings.operations');

               if (baseURL) {
                   defintion.template.url = url.resolve(baseURL, defintion.template.url);
               }

               settings.operations.push(defintion);
           }
       });
   }

   RestConnector.initialize(dataSource, callback);
   applyTransformerPatch(dataSource);
   autoloadFunctions(dataSource);
};

loopback-connector-rest

Loopback REST Connector

MIT
Latest version published 1 month ago

Package Health Score

81 / 100
Full package analysis

Popular loopback-connector-rest functions