1.2.4 • Published 23 days ago
@white-matrix/request-client-generator v1.2.4
DEMO
Demo for local file
const RequestClientGenerator = require('@white-matrix/request-client-generator');
const client = new RequestClientGenerator({
schemaPath: './schema',
outputDir: './service'
});
client.generator();
Demo for Remote URL
const RequestClientGenerator = require('@white-matrix/request-client-generator');
const client = new RequestClientGenerator({
remotePath: 'https://whitematrix.com',
outputDir: './service',
// if you have custom instance of axios, add two lines below
customInstancePath: './one-sync-front/axios/custom-instance', // add relative path from your outputDir
customInstanceName: 'CustomInstance'
});
client.generator();