Requestly:API 客户端、模拟与测试工具

Requestly: API Client, Mocking & Testing Tool

使用场景

Requestly 是一个开源的 API 客户端和 HTTP 拦截器,帮助开发者快速测试和模拟 API 请求。

核心功能

  • 美丽且隐私友好的 API 客户端
  • Mock API 响应以构建前端
  • HTTP 重定向规则以加载本地或暂存环境脚本
  • 修改和模拟 API 请求负载、响应体和状态代码
  • Override GraphQL 请求

插件截图

插件简介

Open-Source API Client & HTTP Interceptor. API Collections, Environments, JS Redirects, API Mocks, Modify Headers and Insert Scripts

🚀 Best Chrome extension to Test & Mock API Requests. Trusted by 200,000+ developers.

👉 Requestly works directly in Chrome with beautiful, modern UI and team collaboration features. Popular features – API Client, API Mocking & HTTP Interceptor.

⭐️ Open Source – https://github.com/requestly/requestly/

🌟 Top Use Cases
→ A beautiful & privacy-friendly API-Client (Full LocalStorage Support)
→ Mock API Responses to build frontend when backend isn’t ready
→ Test local JavaScript changes directly on production site.
→ Use HTTP Redirect Rule to load scripts from local or staging environments on production sites.
→ Modify and Mock API Request payload, Response body, & Status Code.
→ Override GraphQL Requests
📌 https://requestly.com/blog/what-is-requestly

Requestly doesn’t set up a proxy in your browser, and hence, developers don’t face VPN issues or lags while using it. Requestly leverages Chrome Extension APIs under the hood to hit API endpoints and to intercept & modify requests.

======== Top Features ========

👉 Beautiful & Privacy-Friendly API Client
→ Test API Responses
→ API Collections
→ Environments (Variables & Secrets)
→ Pre-Request & Post-Response Scripts
→ Team Workspaces
📌 Demo Video – https://www.youtube.com/watch?v=xrqmAffe86k

👉 Mock XHR & Fetch API requests (Stub API Responses or API Mocking)
→ Helps in building frontend faster when backend (or APIs) don’t exist
→ Define Custom API Responses triggered by XHR/fetch
→ Modify/Override API responses
→ Mock GraphQL API responses
→ Simulate fake HTTP Status Code (400s or 500s)
📌 Demo Video – https://www.youtube.com/watch?v=KIPbxUGUYq8

👉 HTTP Interceptor Features
→ HTTP Redirects (API or JS Redirects from one env to another)
→ Swap Host/Domain of HTTP Requests
→ Modify HTTP Request & Response Headers
→ Override XHR Request Body & Response Body
→ Insert Scripts
→ Block Network Requests
→ Add/Simulate Delay in HTTP Requests
📌 Demo Video – https://www.youtube.com/watch?v=vfcGy2666us

======== HTTP Interceptor Features & their Use-Cases ========

👉 Redirect URLs, Change Host, Modify Query Params (Map Remote or Map Local)
→ Use dev/staging APIs in production sites & test local changes without code changes
→ Debug remote Javascript by loading locally running JS in production sites
→ Switch Hosts (e.g. abc.com/* to xyz.com/*) using Replace Rule
→ Debug Ad Tracking Pixels, Debug A/B Test Campaigns, etc
→ Remote Debugging with Requestly on Production sites
→ Swap Adobe Launch (Adobe DTM) scripts in production with staging script
📌 Demo Video — https://www.youtube.com/watch?v=85GVaOWTnlE

👉 Insert Scripts to any Webpage
→ UserScripts are simple JavaScript/CSS code that can change the layout of a page, add or remove new functionality and content, or automate actions.
→ Use File Server to upload long scripts and Inject them using Script Rule
→ Inject your JS tags on potential customers’ sites and test your features
→ The sales/product team can use this to demo the product directly on the prospect’s website (10x engaging demo)
📌 Demo — https://www.youtube.com/watch?v=4dvucRjLwGY

👉 Cloud-based API Mock Server
→ Create API Mocks
→ Generate Mock data (random data) in the API response
→ Test Mock API endpoints using API client
→ Add delay to the API Mocks
→ Define custom HTTP status code & custom headers in the API Mock
→ CORS enabled. The mock endpoints work seamlessly without CORS errors.
📌 https://app.requestly.io/mocks

👉 Session Recording
→ Visual Bug Reporting Tool
→ Cut down your bug reporting time & debugging time
→ Automatically capture browsing video, Console logs, Network logs & env details
→ Get quality bug reports from QAs, Customer Support & other non-technical people
→ Easily Share Har files
📌 Demo Video – https://www.youtube.com/watch?v=g_qXQAzUQgU

👉 Requestly provides the following imports
→ All workspace data including api collections, environments and scripts from Postman
→ All api collections, and environments from Insomnia
→ All workspaces, api folders, and environments from Bruno
→ All HTTP header profiles from ModHeader
→ JSON configuration for Redirects & Scripts from Resource Override
→ XML configuration from Charles Proxy (Map local isn’t supported yet due to technical limitations)
📌 Docs — https://docs.requestly.com/general/imports/postman

👉 Additional Features
→ Enable/Disable rules with a single click
→ Export and import the rules and maintain a backup for your rules
→ Easy collaboration with others. Share Rules with other Users in one click
📌 Demo — https://www.youtube.com/watch?v=BM7kTFy-vdc

======== References =======
🏡 Website – https://requestly.com
📖 Docs – https://developers.requestly.com
🥷 Github – https://github.com/requestly/requestly
💻 Desktop App – https://requestly.com/desktop
📳 Issues – https://github.com/requestly/requestly/issues
🔓Privacy – https://requestly.com/privacy

免责声明:本网站内容来源于网络,仅供个人学习使用!
谷歌插件大全 » Requestly:API 客户端、模拟与测试工具

提供最优质的资源集合

立即查看 了解详情