@metyis-tools/generate-api
v0.0.9
Published
## Usage
Downloads
9
Readme
@metyis-tools/generate-api
## Usage
You can either use npx
to execute it just like:
$ npx @metyis-tools/generate-api -o ./src/api
or you can install it globally and run the command as metyis-api
:
$ yarn global add @metyis-tools/generate-api
$ metyis-api -o ./src/api
Typical usage
Typical usage would be:
if running for the first time:
$ npx @metyis-tools/generate-api -o ./src/api
subsequent 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-api
will 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