An open API service indexing awesome lists of open source software.

https://github.com/guocaoyi/qapi

QApi is a TypeScript definitions generator, 📃 based on OpenAPI(Swagger)!
https://github.com/guocaoyi/qapi

api api-client openapi swagger-api typescript-definitions yapi-plugin

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# QAPI

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

## Features

```bash
.
├── 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

```bash
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

```bash
npm start
npm stop
```