yapi-next/README.md
2023-06-27 18:54:43 +08:00

48 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mofish
接口管理平台,自动化测试接口,并生成测试报告
使用文档https://mogic.feishu.cn/wiki/FJbswpfoti21GokaAUrcaCNungc
### 特性
* 基于 Json5 和 Mockjs 定义接口返回数据的结构和文档,效率提升多倍
* 扁平化权限设计,即保证了大型企业级项目的管理,又保证了易用性
* 类似 postman 的接口调试
* 自动化测试, 支持对 Response 断言
* MockServer 除支持普通的随机 mock 外,还增加了 Mock 期望功能,根据设置的请求过滤规则,返回期望数据
* 支持 postman, har, swagger 数据导入
* 免费开源,内网部署,信息再也不怕泄露了
## mac环境搭建
硬性要求:以下版本一定要低,否则无法编译成功
- 本地node版本v8.17.0
- 本地npm版本v6.13.4
- 本地node-gyp版本v9.3.1
- 本地python环境2.7.18
## npm 挂载镜像
按实际情况来试:
https://cloud.tencent.com/developer/article/1372949
## 第三方插件
- https://www.npmjs.com/search?q=yapi-plugin-&page=5&perPage=20
## 常用命令举例
- npm install types-ramda@^0.29.3
- npm install --registry https://mirrors.huaweicloud.com/repository/npm/
- yapi unplugin --name yapi-plugin-api-doc
- yapi plugin --name yapi-plugin-api-doc
## 参考连接
- https://juejin.cn/post/6844904014899838983
- https://www.freecodecamp.org/chinese/news/python-version-on-mac-update/
- https://github.com/YMFE/yapi/issues/1865
- http://yapi.smart-xwork.cn/doc/index.html
- https://github.com/YMFE/yapi/issues/2693
- https://github.com/YMFE/yapi/issues/16
- https://segmentfault.com/a/1190000016956077