Skip to content

NechiK/swagger-schematics

Repository files navigation

Swagger Schematics

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...

How to use?

  1. Install package
npm i -D swagger-schematics
  1. Run schematic
schematics swagger-schematics:api swaggerUrl --path=/src/app/core
schematics swagger-schematics:types swaggerUrl --path=/src/app/core

schematics 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!

Docs

Options

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published