{"id":14973619,"url":"https://github.com/tommylemon/apiauto","last_synced_at":"2025-05-14T10:13:27.745Z","repository":{"id":37735781,"uuid":"107796025","full_name":"TommyLemon/APIAuto","owner":"TommyLemon","description":"☔ 敏捷开发最强大易用的接口工具，机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释，腾讯、华为、SHEIN、传音、工行等使用 ☔ The most advanced tool for HTTP API. Testing with machine learning, generating codes and static analysis, generating comments and floating hints. Used by Tencent, Huawei, SHEIN, TRANSSION, ICBC, etc.","archived":false,"fork":false,"pushed_at":"2025-01-05T15:04:05.000Z","size":5497,"stargazers_count":2015,"open_issues_count":60,"forks_count":254,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-04-03T20:06:49.205Z","etag":null,"topics":["api","api-testing","apijson","apitesting","automated-testing","autotesting","document-database","documentation-tool","grpc","headless","http","http-api","http-client","http-request","http-tool","javascript","test-automation","testing","testing-tools","vuejs2"],"latest_commit_sha":null,"homepage":"http://apijson.cn/api","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/TommyLemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-21T16:24:27.000Z","updated_at":"2025-04-02T02:00:45.000Z","dependencies_parsed_at":"2023-02-01T23:46:10.662Z","dependency_job_id":"8b72704c-7257-4295-9933-b8b52dd8023b","html_url":"https://github.com/TommyLemon/APIAuto","commit_stats":{"total_commits":972,"total_committers":2,"mean_commits":486.0,"dds":0.005144032921810648,"last_synced_commit":"3496f9c62403053724e48118cfaa088ca161407f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2FAPIAuto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2FAPIAuto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2FAPIAuto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2FAPIAuto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TommyLemon","download_url":"https://codeload.github.com/TommyLemon/APIAuto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248338355,"owners_count":21087206,"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-testing","apijson","apitesting","automated-testing","autotesting","document-database","documentation-tool","grpc","headless","http","http-api","http-client","http-request","http-tool","javascript","test-automation","testing","testing-tools","vuejs2"],"created_at":"2024-09-24T13:49:03.921Z","updated_at":"2025-05-14T10:13:27.724Z","avatar_url":"https://github.com/TommyLemon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"text-align:center;\"\u003e\r\n  APIAuto\r\n\u003c/h1\u003e\r\n \r\n\u003cp align=\"center\"\u003e☔ HTTP 接口 机器学习零代码测试 和 一站式智能开发管理 工具\u003c/p\u003e\r\n\r\n\u003cp align=\"center\" \u003e\r\n  \u003ca href=\"https://github.com/TommyLemon/APIAuto#%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B\"\u003e快速上手\u003c/a\u003e\r\n  \u003ca href=\"https://search.bilibili.com/all?keyword=APIAuto\"\u003e视频教程\u003c/a\u003e\r\n  \u003ca href=\"http://apijson.cn/api\"\u003e在线体验\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\" \u003e\r\n  \u003cimg src=\"https://raw.githubusercontent.com/TommyLemon/APIAuto/master/img/logo.png\" /\u003e\r\n\u003c/p\u003e\r\n\r\n---\r\n敏捷开发最强大易用的 HTTP 接口工具，机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释。\u003cbr /\u003e\r\n集合 文档、测试、Mock、调试、管理 的一站式体验，还有 **AI 问答** 和一键 格式化、注释/取消注释 等高效快捷键。\u003cbr /\u003e\r\n在常用功能上远超 Postman, Swagger, YApi 等各种 开源、商业 的 API 文档/测试 工具，并能一键导入用例和文档。\u003cbr /\u003e\r\n支持 GET, POST, PUT, PATCH, DELETE, HEAD 等各种 HTTP Method 及 Content-Type, URL /{Path}/{Variable}。\u003cbr /\u003e\r\n不仅适用于 RESTful、类 RESTful、GRPC 的 API，还是腾讯 [APIJSON](https://github.com/Tencent/APIJSON) 官方建议的文档与测试工具。\u003cbr /\u003e\r\n腾讯内部用户包括 IEG 互动娱乐事业群、TEG 技术工程事业群、CSIG 云与智慧事业群 的多个部门及团队， \u003cbr /\u003e\r\n外部用户包含 华为、工商银行某地分行、500 强上市公司传音、跨境电商巨头 SHEIN、行业领头羊社保科技 等。\r\n\r\n![](https://github.com/user-attachments/assets/24460af3-0001-46e7-aa2a-df28b711a8cf)\r\n![](https://github.com/user-attachments/assets/8bc839b1-cce1-4cda-a35d-77ade1387035)\r\n![](https://user-images.githubusercontent.com/5738175/145665502-94231804-5ea8-4784-b30d-d5558aad0f8d.jpeg)\r\n\r\n\u003ch3 align=\"center\" style=\"text-align:center;\"\u003e\r\n腾讯 AI 测试圈子演讲(部分)\r\n\u003c/h3\u003e\r\n\r\n![](https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIAuto/APIAuto_Tencent_TEG_AITestCircle_quick_and_slow.gif)\r\n\r\n\r\n#### 腾讯内先后被 TEG 工具开发组、微信支付部门、IEG 工具开发组、CDG 金融支付组、IEG PC 游戏平台部 邀请分享了 \r\n* APIAuto-机器学习 HTTP 接口工具\r\n* 零代码测试工具与实践(API•单元•UI)\r\n* 零代码开发和测试(API测试•单元测试•API开发)\r\n* 零代码开发和测试(API测试•单元测试•API开发)\r\n* 零代码开发和测试(接口测试•单元测试•接口开发)\r\n\r\n#### 质效无双线上技术访谈-零代码智能测试工具实践介绍-第11期\r\nhttps://testwo.cn1.quickconnect.cn/vs/sharing/iiP8VK1C#!aG9tZV92aWRlby0xMQ==\r\n![https://testwo.cn1.quickconnect.cn/vs/sharing/iiP8VK1C#!aG9tZV92aWRlby0xMQ==](https://user-images.githubusercontent.com/5738175/179575169-de9cc578-6d90-4aec-bbf4-f28147277ed2.png)\r\n\r\n#### 和华为云副总裁并列，QECon-全球软件质量\u0026效能 大会分享总结\r\n零代码开发和测试 成为大会主会场回看预约海报唯一分会场演讲范例 \u003cbr /\u003e\u003cbr /\u003e\r\n\u003cimg width=\"1360\" alt=\"wecom-temp-377bbd0daf5aed716baf7ebcb003d94c\" src=\"https://user-images.githubusercontent.com/5738175/121370207-1b35de00-c96f-11eb-840e-cc2ff2995888.png\"\u003e\r\n\r\n\u003cimg width=\"390\" src=\"https://user-images.githubusercontent.com/5738175/125167121-86bed580-e1d1-11eb-9dc6-2ea190146fe6.png\"\u003e\r\n\r\n现场录播回放视频：QECon大会-零代码开发和测试(APIJSON和APIAuto)\u003cbr /\u003e\r\nhttps://www.bilibili.com/video/BV1yv411p7Y4\r\n\u003cbr /\u003e\r\n\r\n![](https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIAuto/APIAuto_mltesting.gif)\r\n![](https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIAuto/APIAuto_mltest_check_result.gif)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/5738175/145665614-f9208e35-9dc2-4a02-a8c9-0d7c9f4a87bc.png)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 008](https://user-images.githubusercontent.com/5738175/145665488-42b04a4b-1f74-4fb8-8a62-db3535f4256c.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 009](https://user-images.githubusercontent.com/5738175/145665490-d90dda3f-2439-44d2-b7ae-88fb6f7e6c92.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 010](https://user-images.githubusercontent.com/5738175/145665492-65409dd7-10ef-4c70-928e-48affe020df4.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 012](https://user-images.githubusercontent.com/5738175/145665496-628f7cc4-f6b9-4329-a759-8d0185de4f87.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 013](https://user-images.githubusercontent.com/5738175/145665502-94231804-5ea8-4784-b30d-d5558aad0f8d.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 014](https://user-images.githubusercontent.com/5738175/145665504-a6d6b251-0284-4026-9d62-0cc7937082b1.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 016](https://user-images.githubusercontent.com/5738175/145665508-0c02afe0-0e13-4f5f-8fd8-f0a017ed6e26.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 017](https://user-images.githubusercontent.com/5738175/145665509-cf1d841a-a7a6-441c-8b68-eaf65b452bfc.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 018](https://user-images.githubusercontent.com/5738175/145665512-86b5f067-c490-4de6-afa7-78c0f328c9cd.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 019](https://user-images.githubusercontent.com/5738175/145665514-b22e7180-237a-4f13-acc1-8eb21c9b5b37.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 020](https://user-images.githubusercontent.com/5738175/145665516-61e2693b-ec34-4775-9a71-52b5af5d3ede.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 021](https://user-images.githubusercontent.com/5738175/145665518-a35bc996-9cc2-478a-a1de-7ba731dbe557.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 022](https://user-images.githubusercontent.com/5738175/145665522-8f0ff509-5510-4d94-96e2-d088aecf6fce.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 023](https://user-images.githubusercontent.com/5738175/145665525-a624f521-4a6f-4315-9aa3-a7309348d083.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 024](https://user-images.githubusercontent.com/5738175/145665527-4a5da35a-da8c-4abd-8fb7-71059fbb4520.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 025](https://user-images.githubusercontent.com/5738175/145665528-dabbcaa0-617a-41e7-b3d3-cc66251934b1.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 026](https://user-images.githubusercontent.com/5738175/145665530-5b3b1cbd-0962-49fa-ab59-b307672b7c62.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 027](https://user-images.githubusercontent.com/5738175/145665531-2449009f-7fea-435c-ad0e-f7f2f525d4e5.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 028](https://user-images.githubusercontent.com/5738175/145665535-b86d4e49-cfa5-4aa5-8f71-d8e68a85828a.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 030](https://user-images.githubusercontent.com/5738175/145665537-de24b9b6-b47f-45cd-82bf-b7d06d156ce6.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 031](https://user-images.githubusercontent.com/5738175/145665538-983ffe6f-f293-466a-ab4c-d5de12e20fae.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 033](https://user-images.githubusercontent.com/5738175/145665542-2e1b0a43-ed06-4305-8e7d-b7c475dad0f9.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 034](https://user-images.githubusercontent.com/5738175/145665545-00229bae-726a-4426-ae76-d43ed45df65d.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 036](https://user-images.githubusercontent.com/5738175/145665552-05259dac-9546-4819-9db3-bb23e332f742.jpeg)\r\n![APIJSON 和 APIAuto - 零代码开发和测试-QECon 大会-图像 037](https://user-images.githubusercontent.com/5738175/145665553-68403dcb-4cdd-42d4-9ffc-e32657e16b2b.jpeg)\r\n\r\n\r\n\u003cbr /\u003e\u003cbr /\u003e\r\n\r\n### 特点功能\r\n\r\n* 自动生成接口文档，光标悬浮注释\r\n* 自动校验与格式化参数，支持高亮和收展\r\n* 自动生成各种语言前后端代码，一键下载\r\n* 自动机器学习零代码测试接口，一键运行\r\n* 自动管理接口测试用例，一键共享\r\n* 自动给请求JSON加注释，一键切换\r\n* 自动保存历史请求记录，一键恢复\r\n\r\n以上是简略图，机器学习测试、自动生成代码、自动静态检查、自动生成注释 等详细的功能介绍见 \u003cbr /\u003e\r\n\r\n[https://github.com/TommyLemon/APIAuto/blob/master/apijson/README.md](https://github.com/TommyLemon/APIAuto/blob/master/apijson/README.md)\r\n\r\n### 演讲稿件\r\n[APIAuto-机器学习 HTTP 接口工具](https://github.com/TommyLemon/StaticResources/tree/master/APIAuto/Share) \u003cbr /\u003e\r\n[QECon 大会-腾讯 Tommy-零代码开发和测试](https://github.com/TommyLemon/StaticResources/tree/master/APIAuto/Share)\r\n\r\n### 视频教程\r\nBilibili：https://search.bilibili.com/all?keyword=APIAuto\r\n\u003cimg width=\"1020\" alt=\"image\" src=\"https://github.com/TommyLemon/APIAuto/assets/5738175/662603f2-75a2-4480-b329-faebf303a13d\"\u003e\r\n\r\n\u003cbr /\u003e\r\n优酷：https://i.youku.com/i/UNTg1NzI1MjQ4MA==\r\n\u003cimg width=\"1207\" alt=\"image\" src=\"https://github.com/TommyLemon/APIAuto/assets/5738175/11ff5315-23a2-4301-8b67-83fac0b7a369\"\u003e\r\n\r\n\r\n### 相关推荐\r\n[别再生成测试代码了！](https://mp.weixin.qq.com/s/G1GVNhhFbSX5GoyRU6GURg) \u003cbr /\u003e\r\n[APIAuto: 最先进的HTTP接口工具](https://blog.csdn.net/Nifc666/article/details/141966487)\r\n\r\n\r\n### 百度、搜狗、抖音公网接口调用演示\u003cbr /\u003e\r\n因为这些接口不支持 CORS 跨域，所以需要开启托管服务代理。\u003cbr /\u003e\r\n可以复制 Chrome 等浏览器、Charles 等抓包工具的请求文本，\u003cbr /\u003e\r\n粘贴到 APIAuto 的 URL 输入框，会自动填充 URL, JSON, Header 等。\u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto/issues/16 \r\n\r\n#### 百度\r\n![APIAuto_request_thirdparty_api_baidu](https://user-images.githubusercontent.com/5738175/154853951-558b9ce0-b8a5-4f35-a811-3c3fbee1235a.gif)\r\n\r\n#### 搜狗\r\n![APIAuto_request_sogou_api](https://user-images.githubusercontent.com/5738175/154854769-dbb0da94-ce59-41a9-8e79-f500c61e17b3.gif)\r\n\r\n#### 抖音\r\n![APIAuto_request_douyin_api](https://user-images.githubusercontent.com/5738175/154854538-d21f22cc-d9f1-4f84-ae2f-8e63bfd02f8f.gif)\r\n\r\n\u003cbr /\u003e\r\n\r\n**还可以参考视频：APIAuto 测试请求第三方 HTTP API** \u003cbr /\u003e\r\nhttps://www.bilibili.com/video/BV1JZ4y1d7c8\r\n![image](https://user-images.githubusercontent.com/5738175/160234764-a8e02ca4-1d0e-407b-8ac7-2f85c9f200d6.png)\r\n\r\n\r\n\u003cbr/\u003e\r\n\r\n### 快速上手\r\n\r\n本项目是纯静态 SPA 网页，下载源码解压后：\u003cbr /\u003e\r\n可以用浏览器打开 index.html，建议用 [Chrome](https://www.google.com/intl/zh-CN/chrome) 或 [Firefox](https://www.mozilla.org/zh-CN/firefox) (Safari、Edge、IE 等可能有兼容问题)，注意此方法不显示 svg 图标。\u003cbr /\u003e\r\n也可以用 [IntelliJ Webstorm](https://www.jetbrains.com/webstorm/), [IntelliJ IDEA](https://www.jetbrains.com/idea/), [Eclipse](https://www.eclipse.org/) 等 IDE 来打开。\u003cbr /\u003e\r\n也可以部署到服务器并用 [Nginx](https://www.jianshu.com/p/11fa3a1a6d65) 或 [Node](https://segmentfault.com/a/1190000039744899) 反向代理，或者 [把源码放到 SpringBoot 项目的 resources/static 目录](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server)。 \u003cbr /\u003e\r\n还可以直接访问官方网站 http://apijson.cn/api 或 http://apijson.cn:8080 \u003cbr /\u003e\r\n\u003cbr /\u003e\r\n把左侧 URL 输入框内基地址改为你主机的地址(例如 http://localhost:8080 )，\u003cbr /\u003e\r\n然后在右上角 设置 下拉菜单内修改 数据库类型Database、数据库模式Schema。\u003cbr /\u003e\r\n\u003cbr /\u003e\r\n右上角登录的默认管理员账号为 13000082001 密码为 123456，\u003cbr /\u003e\r\n右侧上方中间 3 个标签是默认的测试用户账号，点击登录/退出，左侧 - 删除，右侧 + 新增。\u003cbr /\u003e\r\n\u003cbr /\u003e\r\n**自动生成文档、自动管理测试用例 这两个功能 需要部署 APIJSON 后端，建议用 APIJSONBoot 系列之一 Demo，见** \u003cbr /\u003e \r\nhttps://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server\r\n\r\n**建议使用已 [内置 APIAuto](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static) 的 [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource)，可以避免以下常见问题 1, 3, 4**\r\n\r\n\u003cbr /\u003e\r\n\r\n### 新增测试用例\r\n\r\n可以使用以下几种方式：\r\n\r\n#### 1.从 Postman/Swagger/YApi/Rap 等其它接口工具/平台一键导入\r\n点右上角登录 \u003e 点右上角设置 \u003e 导入第三方文档(平台 URL) \u003e 如果默认设置不符你的需求，可以在弹窗内修改 \u003e 点上传按钮\r\n\r\n#### 2.从浏览器 Network 接口信息界面或 Charles 等抓包工具复制后粘贴到 URL 输入框\r\nhttps://github.com/TommyLemon/APIAuto#%E7%99%BE%E5%BA%A6%E6%90%9C%E7%8B%97%E6%8A%96%E9%9F%B3%E5%85%AC%E7%BD%91%E6%8E%A5%E5%8F%A3%E8%B0%83%E7%94%A8%E6%BC%94%E7%A4%BA\r\n\r\n#### 3.调用 /delegate 代理接口来录制请求的方法、参数、Header、响应等信息\r\nhttps://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource#%E4%BB%A3%E7%90%86%E6%8E%A5%E5%8F%A3%E5%8F%8A%E5%BD%95%E5%88%B6%E6%B5%81%E9%87%8F\r\n\r\n#### 4.打开分享链接来自动填充 URL、参数 JSON、请求头、参数注入配置、设置项 等\r\n例如：\r\nhttp://apijson.cn/api/?send=true\u0026type=JSON\u0026url=http%3A%2F%2Fapijson.cn%3A8080%2Fget\u0026json={%22[]%22:{%22Comment%22:{},%22User%22:{%22id@%22:%22%2FComment%2FuserId%22}}}\r\n\r\n#### 5.在界面手动填写 URL、参数 JSON、请求头 等再点击上传/分享按钮\r\n可点击分享按钮生成分享链接，用浏览器打开即可自动填充。 \u003cbr /\u003e\r\n退出登录后可设置 使用的请求类型，全部类型为 PARAM,JSON,FORM,DATA,GRPC \r\n\r\n\u003cbr /\u003e\r\n\r\n### 后台 Headless 无 UI 模式回归测试\r\nJenkins、蓝盾 等 CI/CD 等流水线不支持带 UI 测试，所以提供了这个模式， \u003cbr /\u003e\r\n通过调用 HTTP API 即可执行用例和查看进度，方便集成到 CI/CD 流水线。\r\n![image](https://user-images.githubusercontent.com/5738175/199452068-dee4cbcb-ca4c-484a-8953-84b6bd238982.png)\r\n![image](https://user-images.githubusercontent.com/5738175/199453742-b1e897f5-6950-40e2-8bfc-80b826966c6b.png)\r\n\r\n#### 1.配置 Node 环境及 NPM 包管理工具\r\nhttps://nodejs.org\r\n\r\n#### 2.安装相关依赖\r\nhttps://koajs.com\r\n```sh\r\nnvm install 7\r\nnpm i koa\r\n```\r\n\r\n#### 3.使用后台 HTTP 服务\r\n先启动 HTTP 服务\r\n```sh\r\ncd js\r\nnode server.js\r\n```\r\n如果运行报错 missing package xxx，说明缺少相关依赖，参考步骤 2 来执行\r\n```sh\r\nnpm i xxx\r\n```\r\n然后再启动 HTTP 服务。\u003cbr /\u003e\r\n\r\n启动成功后会有提示，点击链接或者复制到浏览器输入框打开即可。\u003cbr /\u003e\u003cbr /\u003e\r\n如果托管服务是用 [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource) 部署的，\u003cbr /\u003e\r\n链接 host 后可以加上 /api，例如 http://localhost:3000/api/test/start，\u003cbr /\u003e\r\n通过这个接口来放宽前端执行时查询测试用例、参数配置等列表的条数，一次可批量执行更多用例。\r\n\r\n\u003cbr /\u003e\u003cbr /\u003e\r\n\r\n### 常见问题\r\n\r\n**本网页工具基本每个按钮/输入框等 UI 组件都有注释或悬浮文档等形式的操作提示，\u003cbr /\u003e\r\n很多问题都不需要看文档/视频，可以直接通过把光标放上去等简单尝试来得到解答**\r\n\r\n#### 1.无法访问接口\r\n如果是 APIAuto 本身调用的后端接口，则一般是 Chrome 90+ 对 CORS 请求禁止携带 Cookie  \u003cbr /\u003e\r\n或 Chrome 80-89 强制 same-site Cookie 的策略导致，打开以下链接查看解决方法 \u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto/issues/9\r\n\r\n如果是其它接口，则一般是以上原因或者被接口不支持 CORS 跨域，可以改为支持， \u003cbr /\u003e\r\n或者在 APIAuto 右上角设置开启托管服务器代理，通过后端代理访问接口， \u003cbr /\u003e\r\n注意默认是官网的托管服务器 http://apijson.cn:9090 ，仅支持公网， \u003cbr /\u003e\r\n如果是贵公司内网，请按以上 [部署方法](https://github.com/TommyLemon/APIAuto#%E9%83%A8%E7%BD%B2%E6%96%B9%E6%B3%95) 文档来部署 APIJSON 后端到内网，并修改托管服务器地址。\r\n\r\n#### 2.没有生成文档\r\n右上角设置项与数据库实际配置不一致 等  \u003cbr /\u003e\r\nhttps://github.com/Tencent/APIJSON/issues/85\r\n\r\n#### 3.托管服务器访问不了\r\n不能代理接口、不能展示文档、不能对断言结果纠错 等 \u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto/issues/12\r\n\r\n#### 4.apijson.cn 访问不了\r\n托管服务地址改为 http://47.98.196.224:8080  \u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto/issues/13\r\n\r\n更多问题及解答 \u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto/issues\r\n\r\n\u003cbr /\u003e\r\n\r\n### Roadmap 路线图\r\n1.Translate document to English/Italian/Franch/Spanish... \u003cbr /\u003e\r\n\r\n2.新增功能 \u003cbr /\u003e\r\n1) 断言结果 新增按钮 变-\\{原因}，点击后右侧展示 JSON diff view； \u003cbr /\u003e\r\n2) 右下角列表展示具体每个断言有问题的字段，点击后 JSON view 只显示该字段对应值 \u003cbr /\u003e\r\n其他待补充... \u003cbr /\u003e\r\n\u003cbr /\u003e\r\n3.完善自动断言，支持更多格式的匹配 \u003cbr /\u003e\r\n\u003cbr /\u003e\r\n4.解决 bug \u003cbr /\u003e\r\n\u003cbr /\u003e\r\n5.提升性能 \u003cbr /\u003e\r\n\u003cbr /\u003e\r\n6.其他待补充... \u003cbr /\u003e\r\n\r\n\u003cbr /\u003e\r\n\r\n### 感谢开源\r\n* jsonon\r\n* editor.md\r\n* vue.js\r\n\r\n### 技术交流\r\n##### 关于作者\r\n[https://github.com/TommyLemon](https://github.com/TommyLemon)\u003cbr /\u003e\r\n![image](https://github.com/user-attachments/assets/c4aa8573-f8b3-4973-8c37-29677c06ac3b)\r\n\r\n如果有什么问题或建议可以 [提 issue](https://github.com/TommyLemon/APIAuto/issues)，交流技术，分享经验。\u003cbr \u003e\r\n如果你解决了某些 bug，或者新增了一些功能，欢迎 [提 PR 贡献代码](https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md)，感激不尽。\r\n\u003cbr /\u003e\r\n\u003cbr /\u003e\r\n\r\n### 其它项目\r\n\r\n[APIJSON](https://github.com/Tencent/APIJSON) 🚀 腾讯零代码、全功能、强安全 ORM 库 🏆 后端接口和文档零代码，前端(客户端) 定制返回 JSON 的数据和结构\r\n\r\n[UnitAuto](https://github.com/TommyLemon/UnitAuto) 机器学习单元测试平台，零代码、全方位、自动化 测试 方法/函数 的正确性和可用性\r\n\r\n[SQLAuto](https://github.com/TommyLemon/SQLAuto) 智能零代码自动化测试 SQL 语句执行结果的数据库工具，任意增删改查、任意 SQL 模板变量、一键批量生成参数组合、快速构造大量测试数据\r\n\r\n[UIGO](https://github.com/TommyLemon/UIGO) 📱 零代码快准稳 UI 智能录制回放平台 🚀 自动兼容任意宽高比分辨率屏幕，自动精准等待网络请求，录制回放快、准、稳！\r\n\r\n[apijson-doc](https://github.com/vincentCheng/apijson-doc) APIJSON 官方文档，提供排版清晰、搜索方便的文档内容展示，包括设计规范、图文教程等\r\n\r\n[APIJSONdocs](https://github.com/ruoranw/APIJSONdocs) APIJSON 英文文档，提供排版清晰的文档内容展示，包括详细介绍、设计规范、使用方式等\r\n\r\n[apijson.org](https://github.com/APIJSON/apijson.org) APIJSON 官方网站，提供 APIJSON 的 功能简介、登记用户、作者与贡献者、相关链接 等\r\n\r\n[APIJSON.NET](https://github.com/liaozb/APIJSON.NET) C# 版 APIJSON ，支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite\r\n\r\n[apijson-go](https://github.com/glennliao/apijson-go) Go 版 APIJSON ， 基于Go(\u003e=1.18) + GoFrame2, 支持查询、单表增删改、权限管理等\r\n  \r\n[apijson-go](https://gitee.com/tiangao/apijson-go) Go 版 APIJSON ，支持单表查询、数组查询、多表一对一关联查询、多表一对多关联查询 等\r\n\r\n[apijson-hyperf](https://github.com/kvnZero/hyperf-APIJSON.git) PHP 版 APIJSON，基于 Hyperf 支持 MySQL\r\n\r\n[APIJSON-php](https://github.com/xianglong111/APIJSON-php) PHP 版 APIJSON，基于 ThinkPHP，支持 MySQL, PostgreSQL, SQL Server, Oracle 等\r\n\r\n[apijson-php](https://github.com/qq547057827/apijson-php) PHP 版 APIJSON，基于 ThinkPHP，支持 MySQL, PostgreSQL, SQL Server, Oracle 等\r\n\r\n[apijson-node](https://github.com/kevinaskin/apijson-node) 字节跳动工程师开源的 Node.ts 版 APIJSON，提供 nestjs 和 typeorm 的 Demo 及后台管理\r\n\r\n[uliweb-apijson](https://github.com/zhangchunlin/uliweb-apijson) Python 版 APIJSON，支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite 等\r\n\r\n[apijson-practice](https://github.com/vcoolwind/apijson-practice) BAT 技术专家开源的 APIJSON 参数校验注解 Library 及相关 Demo\r\n\r\n[Android-ZBLibrary](https://github.com/TommyLemon/Android-ZBLibrary) Android MVP 快速开发框架，Demo 全面，注释详细，使用简单，代码严谨\r\n\r\n\r\n### 持续更新\r\nhttps://github.com/TommyLemon/APIAuto/commits/master\r\n\r\n\r\n### 我要赞赏\r\n腾讯、中国邮政、字节跳动、阿里巴巴、美团、网易、百度、京东、滴滴、平安、SHEIN、快手、携程、Bilibili、微众银行、VIVO、 \u003cbr /\u003e\r\n58 集团、中兴 等 和国外 NVIDIA, Amazon, SAP, ThoughtWorks, Red Hat 等各大知名大厂员工点了 Star，感谢大家的支持~ \u003cbr /\u003e\r\n![image](https://github.com/TommyLemon/APIAuto/assets/5738175/723e1c9c-7cf7-431a-b29a-b878e99c7e39) \r\n\r\n**创作不易、坚持更难，右上角点亮 ⭐Star 支持/收藏下本项目吧，谢谢 ^_^** \u003cbr /\u003e\r\nhttps://github.com/TommyLemon/APIAuto\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommylemon%2Fapiauto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftommylemon%2Fapiauto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommylemon%2Fapiauto/lists"}