首页 扩展程序 API Response Simulator

API Response Simulator

提供方: api-response-simulator
18
开发者工具 1,000+ 位用户

插件简介

Simulate API response to test your app's behavior
The API Response Simulator Chrome Extension allows you to simulate backend APIs in order to test how your application handle API certain response.

Generally, if you want to test how frontend behaves when backend API returns 2xx, 4xx or 5xx status codes, there are two options:
- If you control the backend, you can patch your backend code and manually return 2xx/4xx/5xx status codes from API methods.
- If you don't control the backend, you can patch your frontend code with some debug statements to verify the behavior.

Neither of which is an elegant approach.

The API Response Simulator Chrome Extension allows you to map backend API endpoints to the responses you want to simulate for your application.
Internally it patches browser's native XMLHttpRequest API.

Once you've installed the extension, follow the steps to operate it:
- Click on the ! icon at right top of the browser and switch on the extension.
- Click on the OPTIONS button. It'll open a page where you can supply rules with:
- The combination of URL and HTTP verb
- The response status code
- The response value
- You can also edit/delete your rules

Note: Please ensure you turn off the extension after its use. Leaving this extension on might hijack and break your API calls due to the nature of its implementation.

Design Credit:
Name: Jainul Abedin
LinkedIn: https://www.linkedin.com/in/jainul-abedin-4148b816
Email: jainulmca@gmail.com

其他信息

ID apcdhhdefemipnmdedjfbchkecliimpc 版本 0.2.0 上次更新日期 2021年8月9日 大小 1.62MiB 语言 支持1 种语言 开发者

anup.vasudeva2009@gmail.com

适用浏览器

谷歌浏览器、其他Chromium内核的浏览器

API Response Simulator Chrome插件下载

为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效