Item logo image for Mock:Intercept and directly return data

Mock:Intercept and directly return data

4.8(

6 ratings

)
ExtensionDeveloper Tools1,000 users
Item media 5 screenshot
Item video thumbnail
Item media 2 screenshot
Item media 3 screenshot
Item media 4 screenshot
Item media 5 screenshot
Item video thumbnail
Item video thumbnail
Item media 2 screenshot
Item media 3 screenshot
Item media 4 screenshot
Item media 5 screenshot

Overview

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

这是一款拦截对应请求并直接返回配置数据的 Mock 工具。它能帮助我们在开发过程中,减少对接口的依赖,尽可能保证我们能及更加清晰的逻辑来开发或者测试代码。 具体以下功能: 1. 支持拦截和模拟使用 XMLHttpRequest 或 fetch 方法来请求的接口。 2. 根据 swagger2.0 文档自动生成 Mock 数据。 3. 支持 GraphQL 请求的 Mock。 4. 允许对匹配的接口进行 Redirect 操作。 5. 提供 contains、equals 和 regexp 三种匹配模式,以满足不同的接口匹配需求。 6. 成功拦截匹配的接口,直接返回对应的 Mock 数据,无需进行实际的网络请求,Mock 时就不用等待接口返回 200 后才能继续进行后面的操作。 7. 可以设置延迟返回时间,以模拟真实接口的响应。 8. 支持导入、导出配置数据。 9. 支持中英文两种语言。根据浏览器语言环境,自动显示对应的语言。 10. 增加 mock 数据转 TypeScript 类型定义。

4.8 out of 56 ratings

Google doesn't verify reviews. Learn more about results and reviews.

Review's profile picture

MaRioNeTtE (frankind)Jan 18, 2024

I give 4 because, this extension able to do redirect to another url too.

Details

  • Version
    1.5.4
  • Updated
    November 15, 2024
  • Offered by
    xiangmingcsyr
  • Size
    487KiB
  • Languages
    中文 (简体)
  • Developer
    Email
    xiangmingcsyr@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, please open this page on your desktop browser

Google apps