Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 2 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
```