0.0.9 • Published 4 years ago
@metyis-tools/generate-api v0.0.9
@metyis-tools/generate-api
## Usage
You can either use npx to execute it just like:
$ npx @metyis-tools/generate-api -o ./src/apior you can install it globally and run the command as metyis-api:
$ yarn global add @metyis-tools/generate-api
$ metyis-api -o ./src/apiTypical usage
Typical usage would be:
if running for the first time:
$ npx @metyis-tools/generate-api -o ./src/apisubsequent runs:
$ npx @metyis-tools/generate-api -o ./src/api -i config/api-urls.json## Options:
--help, -h Shows the help menu
--out, -o Output directory, here is where
swagger-typescript-apiwill generate its files.--in, -i Input json. If the project where this is going to be used already has a file with all the needed urls (by default
config/api-urls.json) it'll use the EP's provided here.--clean, -c Cleans the output directory before generating