前端重构和开发时模拟后台接口返回数据的辅助开发工具。

Latest Version

Version
1.9.1
Update
April 1, 2022
Size
1.68MiB
Developer
Category
Users
31
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
Storage
See more

YMock: Mock API calls info Extension

1.提高开发效率
再也不用来回调试接口,快速mock开发。

2.业务风险减低
实时反馈交互情况,及早发现及早解决。

3.响应时间可控
模拟真实用户场景,可快速调节响应速率。

4.yapi一键同步
可一键提取请求信息和返回信息。

5.增加白名单配置
指定网站进行白名单调试,防止其他网站的影响

使用说明
1.开启全部拦截switch按钮
2.设置mock白名单域名(注意尾部不带斜杆)
3.设置拦截接口url
4.如遇拦截不成功请刷新网页即可
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "YMock: Mock API calls info", "description": "\u524d\u7aef\u91cd\u6784\u548c\u5f00\u53d1\u65f6\u6a21\u62df\u540e\u53f0\u63a5\u53e3\u8fd4\u56de\u6570\u636e\u7684\u8f85\u52a9\u5f00\u53d1\u5de5\u5177\u3002", "version": "1.9.1", "manifest_version": 2, "permissions": [ "storage" ], "background": { "scripts": [ "background.js" ], "persistent": true }, "devtools_page": "index.html", "web_accessible_resources": [ "ajaxIntercept.js", "clipboard.min.js" ], "content_scripts": [ { "matches": [ "" ], "js": [ "./content.js" ], "css": [ "./custom-style.css" ], "run_at": "document_start", "all_frames": true } ], "icons": { "16": "/images/logo.png", "32": "/images/logo.png", "48": "/images/logo.png", "128": "/images/logo.png" }}
Read more