Skip to content

Repository files navigation

@jawilx/gen-api

npm version npm downloads bundle JSDocs License

A modern cli tool that auto generate typescript api code from swagger 2 and openapi 3

pnpm i -D @jawilx/gen-api

Usage

  1. update package.json
{
  // ...
  "scripts": {
    // ...
    "genapi:init": "gen-api init",
    "genapi": "gen-api now"
  }
}
  1. init api.config.ts
pnpm genapi:init
  1. set api.config.ts apiList swaggerUrl (How to get swaggerUrl)

  2. generate

pnpm genapi

License

MIT License © 2023-PRESENT JawilX

About

A modern cli tool that auto generate typescript api code from swagger 2 and openapi 3

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from antfu/starter-ts