1 Star 1 Fork 0

swagger2-doc / swagger2-doc-parser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

swagger-doc-parser

解析swagger2文档的JSON文件,转换为特定语言(ts、js和dart)接口代码。

如何安装?

git clone https://gitee.com/swagger2-doc/swagger2-doc-parser
cd swagger2-doc-parser
npm install
npm link

如何使用?

swagger2-doc-parser
Usage: swagger2-doc-parser [options] [command]

Options:
  -V, --version          output the version number
  -h, --help             display help for command

Commands:
  fetch [options] <url>  fetch api docs from swagger ui, eg: swagger2-doc-parser fetch http://localhost:8083/v1/v2/api-docs
  gen [options]          gen dart code from api docs, eg: swagger2-doc-parser gen -c ./config.js -o ./lib/controllers
  help [command]         display help for command

示例项目【参考借鉴】

  1. java-server // TODO
  2. flutter-client // TODO
  3. react-js-client // TODO
  4. react-ts-client // TODO
  5. vue-js-client // TODO
  6. vue-ts-client // TODO

联系方式【参与讨论】

  1. 微信群 添加WX liuhong17happy,备注“Swagger2",同意后邀请进群

赞助

如果你觉得本项目对你有用,提提意见或者微不足道的赞助,都是对项目作者最大的支持。

微信支付 支付宝支付
1648617667411.png 1648617844315.png
MIT License Copyright (c) 2022 智者之林 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

解析swagger2、swagger3文档的JSON文件,转换为特定语言(ts、js和dart)接口代码。 展开 收起
JavaScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/swagger2-doc/swagger2-doc-parser.git
git@gitee.com:swagger2-doc/swagger2-doc-parser.git
swagger2-doc
swagger2-doc-parser
swagger2-doc-parser
master

搜索帮助