An open API service indexing awesome lists of open source software.

https://github.com/starlog/swagger-codegen-typescript

A wrap-around typescript code generator on https://github.com/swagger-api/swagger-codegen
https://github.com/starlog/swagger-codegen-typescript

Last synced: about 1 month ago
JSON representation

A wrap-around typescript code generator on https://github.com/swagger-api/swagger-codegen

Awesome Lists containing this project

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)
~~~