Skip to content
/ qapi Public

QApi is a TypeScript definitions generator, 📃 based on OpenAPI(Swagger)!

License

Notifications You must be signed in to change notification settings

guocaoyi/qapi

Repository files navigation

QAPI

QAPI 通过解析 BFF 项目接口编译生成的的 Swagger.json ,直接生成业务 API(方法名、Http Method、URL、Params、Query、Body);

Features

.
├── README.md
├── packages
│   ├── create-qapi #
│   ├── qapi-core # core 核心代码
│   ├── qapi-playground # qapi 在线转换器
│   └── yapi-plugin-typegen # yapi 插件
├── CONTRIBUTING.md # for contribution
└── tsconfig.json

QAPI Core

QAPI CLI

Generate API from Swagger OpenAPI specs

  Usage
    $ qapi [input] [options]

  Options
    --help                help inofs

    --parse
    --publish
    --push

    --npmServer           npm register
    --npmScope            npm Scope e.g. @xxx/pack
    --npmUser             npm user
    --npmPassword         npm password

    --docPublish
    --docisGroupExist
  • json | yaml -> api source
  • api source -> npm package

QAPI Server

npm start
npm stop

About

QApi is a TypeScript definitions generator, 📃 based on OpenAPI(Swagger)!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published