API Response Simulator Chrome 插件, crx 扩展下载

 收录于3年前 阅读数 2

扩展ID: apcdhhdefemipnmdedjfbchkecliimpc

Simulate API response to test your app's behaviorThe 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

Design Credit:
Name: Jainul Abedin
LinkedIn: https://www.linkedin.com/in/jainul-abedin-4148b816
Email: [email protected]
名称 API Response Simulator
插件标识 apcdhhdefemipnmdedjfbchkecliimpc
平台 Chrome
评分 0
评分人数 14
插件主页

作者 api-response-simulator
版本号 0.2.0
大小 1.62 MB
官网下载次数 776
分类 查看更多 web开发 分类下的扩展插件
下载地址
更新时间 2019-11-21 00:00:00
举报
回复

大家在找这些插件