Skip to content
/ gen-api Public
generated from antfu/starter-ts

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

License

Notifications You must be signed in to change notification settings

JawilX/gen-api

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

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published