1.0.22 • Published 2 years ago

@xbdtb/api-gen v1.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

# npm
npm install @xbdtb/api-gen --dev

# yarn
yarn add @xbdtb/api-gen --dev

Configuration

// config.js
module.exports = {
  api: {
    // url or file path
    schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json',
    serversPath: './src/services/generated',
  },
  another: {
    // url or file path
    schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json',
    serversPath: './src/services/generated',
    excludeServices: ['login'],
  },
};

Run

// generate.js
const { generateByConfig } = require('@xbdtb/api-gen');
const config = require(__dirname + '/config.js');

generateByConfig(config);
1.0.19

2 years ago

1.0.18

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.17

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago