Mock: Intercept and directly return data
Mock: Intercept and directly return data is a browser add-on and tool available on the Chrome platform. Developed by xiangmingcsyr, this free software falls under the category of Browsers and subcategory Add-ons & Tools.
This tool allows users to intercept specific requests and directly return configured data, including XMLHttpRequest and fetch class interfaces. It proves to be a valuable asset during development, reducing dependency on actual API calls and allowing for clearer logic when developing or testing code.
Key features of Mock: Intercept and directly return data include:
- Support for intercepting and simulating interfaces requested using XMLHttpRequest or fetch methods.
- Automatic generation of Mock data based on swagger2.0 documentation.
- Mock support for GraphQL requests.
- Ability to redirect matched interfaces.
- Three matching modes (contains, equals, and regexp) to meet different interface matching requirements.
- Directly return corresponding Mock data for matched interfaces without making actual network requests, eliminating the need to wait for a 200 response before proceeding with subsequent operations.
- Option to set a delay in response time to simulate real API responses.
- Import and export configuration data.
- Support for both English and Chinese languages, automatically displayed based on the browser language environment.
- One-click reset function.
- Ability to clone Mock configurations.
- Grouping of Mock lists.
With its comprehensive set of features, Mock: Intercept and directly return data proves to be a valuable tool for developers looking to streamline their development process and enhance testing capabilities.





