{"id":13462616,"url":"https://github.com/YMFE/yapi","last_synced_at":"2025-03-25T01:32:27.527Z","repository":{"id":37390617,"uuid":"59996401","full_name":"YMFE/yapi","owner":"YMFE","description":"YApi 是一个可本地部署的、打通前后端及QA的、可视化的接口管理平台","archived":false,"fork":false,"pushed_at":"2024-08-12T09:29:34.000Z","size":232820,"stargazers_count":27524,"open_issues_count":1605,"forks_count":4825,"subscribers_count":522,"default_branch":"master","last_synced_at":"2025-03-18T01:37:12.004Z","etag":null,"topics":["api","api-management","api-manager","api-test"],"latest_commit_sha":null,"homepage":"http://yapi.smart-xwork.cn/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMFE.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-30T09:09:09.000Z","updated_at":"2025-03-17T20:39:33.000Z","dependencies_parsed_at":"2023-02-17T08:18:44.212Z","dependency_job_id":"16663dee-9627-4326-b87e-14c529cbe3fa","html_url":"https://github.com/YMFE/yapi","commit_stats":{"total_commits":3909,"total_committers":112,"mean_commits":"34.901785714285715","dds":0.6968534151957022,"last_synced_commit":"59bade3a8a43e7db077d38a4b0c7c584f30ddf8c"},"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMFE%2Fyapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMFE%2Fyapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMFE%2Fyapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMFE%2Fyapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMFE","download_url":"https://codeload.github.com/YMFE/yapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245382239,"owners_count":20606176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-management","api-manager","api-test"],"created_at":"2024-07-31T12:00:53.769Z","updated_at":"2025-03-25T01:32:25.576Z","avatar_url":"https://github.com/YMFE.png","language":"JavaScript","readme":"## YApi  可视化接口管理平台\n\n体验地址：\n\n[http://yapi.smart-xwork.cn/](http://yapi.smart-xwork.cn/)\n\n文档：\n\u003cp\u003e\u003ca target=\"_blank\" href=\"https://hellosean1025.github.io/yapi\"\u003ehellosean1025.github.io/yapi\u003c/a\u003e\u003c/p\u003e\n\n### 平台介绍\n![avatar](yapi-base-flow.jpg)\n\nYApi 是\u003cstrong\u003e高效\u003c/strong\u003e、\u003cstrong\u003e易用\u003c/strong\u003e、\u003cstrong\u003e功能强大\u003c/strong\u003e的 api 管理平台，旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API，YApi 还为用户提供了优秀的交互体验，开发人员只需利用平台提供的接口数据写入工具以及简单的点击操作就可以实现接口的管理。\n\n**QQ交流群**:\n\n644642474 **主群可能已满**\n\n941802405 **群2欢迎加入**\n\n### 特性\n*  基于 Json5 和 Mockjs 定义接口返回数据的结构和文档，效率提升多倍\n*  扁平化权限设计，即保证了大型企业级项目的管理，又保证了易用性\n*  类似 postman 的接口调试\n*  自动化测试, 支持对 Response 断言\n*  MockServer 除支持普通的随机 mock 外，还增加了 Mock 期望功能，根据设置的请求过滤规则，返回期望数据\n*  支持 postman, har, swagger 数据导入\n*  免费开源，内网部署，信息再也不怕泄露了\n\n### 内网部署\n#### 环境要求\n* nodejs（7.6+)\n* mongodb（2.6+）\n* git\n#### 安装\n使用我们提供的 yapi-cli 工具，部署 YApi 平台是非常容易的。执行 yapi server 启动可视化部署程序，输入相应的配置和点击开始部署，就能完成整个网站的部署。部署完成之后，可按照提示信息，执行 node/{网站路径/server/app.js} 启动服务器。在浏览器打开指定url, 点击登录输入您刚才设置的管理员邮箱，默认密码为 ymfe.org 登录系统（默认密码可在个人中心修改）。\n\n    npm install -g yapi-cli --registry https://registry.npm.taobao.org\n    yapi server \n    \n#### 服务管理\n利用pm2方便服务管理维护。\n\n    npm install pm2 -g  //安装pm2\n    cd  {项目目录}\n    pm2 start \"vendors/server/app.js\" --name yapi //pm2管理yapi服务\n    pm2 info yapi //查看服务信息\n    pm2 stop yapi //停止服务\n    pm2 restart yapi //重启服务\n\n#### 升级\n升级项目版本是非常容易的，并且不会影响已有的项目数据，只会同步 vendors 目录下的源码文件。\n    \n    cd  {项目目录}\n    yapi ls //查看版本号列表\n    yapi update //更新到最新版本\n    yapi update -v {Version} //更新到指定版本\n    \n### 教程\n* [使用 YApi 管理 API 文档，测试， mock](https://juejin.im/post/5acc879f6fb9a028c42e8822)\n* [自动更新 Swagger 接口数据到 YApi 平台](https://juejin.im/post/5af500e251882567096140dd)\n* [自动化测试](https://juejin.im/post/5a388892f265da430e4f4681)\n* [GTest(基于YApi)接口研发效能提升10倍 实战](https://mp.weixin.qq.com/s/z66f7bRX8aAOppAtBIB7Uw)\n\n### YApi 插件\n* [yapi sso 登录插件](https://github.com/YMFE/yapi-plugin-qsso)\n* [yapi cas 登录插件](https://github.com/wsfe/yapi-plugin-cas) By wsfe\n* [yapi gitlab集成插件](https://github.com/cyj0122/yapi-plugin-gitlab)\n* [oauth2.0登录](https://github.com/xwxsee2014/yapi-plugin-oauth2)\n* [rap平台数据导入](https://github.com/wxxcarl/yapi-plugin-import-rap)\n* [dingding](https://github.com/zgs225/yapi-plugin-dding) 钉钉机器人推送插件\n* [export-docx-data](https://github.com/inceptiongt/Yapi-plugin-export-docx-data) 数据导出docx文档\n* [interface-oauth-token](https://github.com/shouldnotappearcalm/yapi-plugin-interface-oauth2-token) 定时自动获取鉴权token的插件\n* [import-swagger-customize](https://github.com/follow-my-heart/yapi-plugin-import-swagger-customize) 导入指定swagger接口\n\n### 代码生成\n* [yapi-to-typescript：根据 YApi 的接口定义生成 TypeScript 的请求函数](https://github.com/fjc0k/yapi-to-typescript)\n* [yapi-gen-js-code: 根据 YApi 的接口定义生成 javascript 的请求函数](https://github.com/hellosean1025/yapi-gen-js-code)\n* [SwiftJSONModeler:根据 YApi 的接口生成 Swift 模型代码](https://github.com/CodeOcenS/SwiftJSONModeler)\n\n### YApi docker部署（非官方）\n* [使用 alpine 版 docker 镜像快速部署 yapi](https://www.jianshu.com/p/a97d2efb23c5)\n* [docker-yapi: 基于官方yapi-cli的docker-compose方案](https://github.com/Ryan-Miao/docker-yapi)\n* [docker-compose一键部署yapi](https://github.com/jinfeijie/yapi)\n* [docker-YApi: 更易用的 YApi 镜像](https://github.com/fjc0k/docker-YApi)\n* [使用DockerCompose构建部署Yapi](https://github.com/MyHerux/daily-code/blob/master/Program/%E5%B7%A5%E5%85%B7%E7%AF%87/Yapi/%E4%BD%BF%E7%94%A8DockerCompose%E6%9E%84%E5%BB%BA%E9%83%A8%E7%BD%B2Yapi.md)\n* [yapi-docker: dockerized yapi deployment all in one](https://github.com/williamlsh/yapi-docker)\n\n### YApi 一些工具\n* [Api Generator](https://github.com/Forgus/api-generator) 接口文档自动生成插件（零入侵）\n* [mysql服务http工具,可配合做自动化测试](https://github.com/hellosean1025/http-mysql-server)\n* [idea 一键上传接口到yapi插件](https://github.com/diwand/YapiIdeaUploadPlugin)\n* [idea 接口上传调试插件 easy-yapi](https://easyyapi.com/)\n* [执行 postgres sql 的服务](https://github.com/shouldnotappearcalm/http-postgres-server)\n* [SpringBoot依赖自动生成YApi](https://github.com/NoBugBoy/YDoc)\n* [Yapi X 一键生成接口文档, 上传到yapi, rap2, eolinker等（IDEA插件）](https://github.com/jetplugins/yapix)\n\n### YApi 的一些客户\n* 去哪儿\n* 携程\n* 艺龙 \n* 美团\n* 百度\n* 腾讯\n* 阿里巴巴\n* 京东\n* 今日头条\n* 唯品支付 \n* 链家网\n* 快手\n* 便利蜂\n* 中商惠民\n* 新浪\n* VIPKID\n* 马蜂窝\n* 伴鱼\n* 旷视科技\n\n### Authors\n* [hellosean1025](https://github.com/hellosean1025)\n* [gaoxiaomumu](https://github.com/gaoxiaomumu)\n* [zwjamnsss](https://github.com/amnsss)\n* [dwb1994](https://github.com/dwb1994)\n* [fungezi](https://github.com/fungezi)\n* [ariesly15](https://github.com/ariesly15)\n\n\n### License\nApache License 2.0\n\n","funding_links":[],"categories":["Uncategorized","JavaScript","Repository","开发运维工具","目录","协作开发","工具","JavaScript (485)","Web开发环境与工具","接口管理","其他","3. 模拟数据( Mock )","API Management","开发工具\u0026框架"],"sub_categories":["Uncategorized","API Management","测试/工具/Mock","接口协作","开发","Web管理后台通用","开源项目","24.3 Web Sockets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYMFE%2Fyapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYMFE%2Fyapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYMFE%2Fyapi/lists"}