2.5.0 • Published 7 years ago
swagger2-ts-codegen v2.5.0
Swagger Typescript Codegen
A hard fork of swagger-js-codegen
made for typescript only.
Installation
npm install
Usage
Command line, using default class- and method templates:
node bin/index.js -i swagger.json
or
node bin/index.js -i swagger.json -c MyApi -o ./build
To use it programatically, copy the src
folder into your codebase so you can modify the templates or generator to fit your needs. See the examples...
Development tips
I found it super useful to npm link
this module, while improving the default templates.