Mock:Intercept and directly return data

Mock:Intercept and directly return data

2.3.2
人工检测,安心下载
版本2.3.2
大小508KB
语言中文 (简
软件平台浏览器
评分
发布时间2023-12-29 15:55:20
IDkmphamhphplpcjcabjdjjklfjmgkmpba
厂商xiangmingcsyr
插件格式crx
更新时间2026-02-06 23:08:59
Mock:Intercept and directly return data
Mock:Intercept and directly return data
Mock:Intercept and directly return data
Mock:Intercept and directly return data

Mock:Intercept and directly return data简介

拦截请求并直接返回 Mock 数据,包括 XMLHttpRequest、fetch类接口

这是一款用于 Mock XMLHttpRequest 和 fetch 请求的工具。它可以帮助开发者在开发过程中减少对真实接口的依赖,从而更高效地编写和测试代码。

主要功能包括:

1. 支持对使用 XMLHttpRequest 或 fetch 方法发起的接口请求进行 Mock。

2. 能根据 Swagger 2.0 文档自动生成 Mock 数据。

3. 支持修改请求头(Request Headers)。

4. 支持修改请求体(Request Body)。

5. 可对接口请求进行重定向处理。

6. 提供三种匹配模式:contains、equals 和 regexp,以满足不同的接口匹配需求。

7. 支持自定义返回状态和请求响应时间。

8. 支持配置数据的导入和导出。

9. 提供浅色和深色两种主题。

10. 支持中英文双语切换,依据浏览器语言环境自动显示对应语言。

11. 支持配置数据可转换为 Typescript 类型定义。

This is a tool for mocking XMLHttpRequest and fetch requests. It helps developers reduce reliance on real APIs during development, enabling more efficient coding and testing.

Key features include:

1. Support for mocking API requests made using XMLHttpRequest or fetch methods.

2. Automatic generation of mock data based on Swagger 2.0 documentation.

3. Ability to modify request headers (Request Headers).

4. Ability to modify request bodies (Request Body).

5. Support for redirecting API requests.

6. Offers three matching modes: contains, equals, and regexp, to meet different API matching needs.

7. Customization of return status and response time.

8. Support for importing and exporting configuration data.

9. Light and dark themes available.

10. Bilingual support for Chinese and English, with automatic language selection based on the browser's language settings.

11. Configuration data can be converted into Typescript type definitions.

Mock:Intercept and directly return data插件谷歌浏览器安装教程

第一步:下载Mock:Intercept and directly return data安装扩展

第二步:下载下来的扩展解压到你想放的文件夹里

比如我解压到extend文件夹

打开Chrome的扩展页面(chrome:// extensions /或按Chrome菜单图标>更多工具>扩展程序),右上角开发者模式,点击开启,蓝色为开启,灰色为关闭;

再次将crx文件拖放到扩展程序,页面左下角提示:“扩展功能、应用和主题背景可能会损害您的计算机。您确定要继续吗?”

点击“继续”依然显示“无法从该网站添加应用、扩展程序和用户脚本”。尝试另一种办法方法。

第三步:把crx后缀改为zip,再进行解压

如果有些windows电脑系统查看不到文件扩展名,则可以通过以下设置:

找到文件夹顶部,点击查看

点击查看,找到隐藏已知文件扩展名,去掉前面的勾即可

这样你就能看到解压好的扩展名:.crx

解压的扩展名为.crx

把.crx改为:zip

然后再用解压工具再解压一遍,即可得到扩展的全部文件

然后再谷歌浏览器插件页面选择:加载已解压的扩展程序

这样就安装成功了

友情提醒:

其他浏览器,包括qq浏览器,360浏览器,edge浏览器,猎豹浏览器,搜狗浏览器安装插件的方法都是类似的,以上内容大部分通用!

最新收录