Generate TS types and API via swagger scheme using Schematics.
Currently, it supports only Angular 14+. Going to support React templates soon.
Documentation in progress...
- Install package
npm i -D swagger-schematics- Run schematic
schematics swagger-schematics:api swaggerUrl --path=/src/app/coreschematics swagger-schematics:types swaggerUrl --path=/src/app/coreschematics swagger-schematics:types https://api-dev.tsi.trailheadtechnology.com/swagger/v1/swagger.json --path=/src/app/core schematics swagger-schematics:types https://apidev.montagefs.com/swagger/v1/swagger.json --path=/src/app/core 3. Enjoy!
| Name | Type | Description |
|---|---|---|
usePredictions |
string | Analyze method summary and try to predict method name or prefix |
path |
string | Path to folder where to generate files |