@jawilx/gen-api
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @jawilx/gen-api

Weekly Downloads

0

Version

2.1.1

License

MIT

Unpacked Size

56.1 kB

Total Files

16

Last publish

Collaborators

  • jawilx