@white-matrix/request-client-generator

1.2.4 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @white-matrix/request-client-generator

Weekly Downloads

27

Version

1.2.4

License

ISC

Unpacked Size

5.01 kB

Total Files

3

Last publish

Collaborators

  • miles_wang
  • vera_wlz
  • hexi1997
  • sleepyyj
  • chen-yu
  • kilru
  • lucklyric
  • q33357
  • xiadd