swagger-codegen-typescript
v1.2.7
Published
Typescript server boilerplate generator. Created around swagger-codegen (https://github.com/swagger-api/swagger-codegen). With some additional tooling added.
Downloads
35
Readme
This npm CLI tool generate various boilerplate files from your YAML to typescript. This will add jest test environment and eslint as well. All you need to do is creating your business logic!
This npm includes 'swagger-codegen-cli.jar' from https://github.com/swagger-api/swagger-codegen. If you feel unsure, please download by yourself and replace with one from this npm.
How to install
sudo npm install -global swagger-codegen-typescript
How to use
Run command (or set alias/shell script)
swagger-codegen-typescript ~/src/washswat-api-spec/specification/order/api-order-v1-ui-get-pickup-date-list.yaml ~/src/example
swagger-codegen-typescript gen (yaml file) (destination)