Parrot API mocking
Item logo image for Parrot API mocking

Parrot API mocking

Featured
5.0(

5 ratings

)
Item media 4 screenshot
Item media 5 screenshot
Item media 1 screenshot
Item media 2 screenshot
Item media 3 screenshot
Item media 4 screenshot
Item media 5 screenshot
Item media 1 screenshot
Item media 2 screenshot
Item media 1 screenshot
Item media 2 screenshot
Item media 3 screenshot
Item media 4 screenshot
Item media 5 screenshot

Overview

Hassle-free mocking of xhr and fetch calls.

Mocking your API responses like a pro. Parrot allows you to mock any asynchronous API call you want. It does this by patching both Fetch and XMLHttpRequest in such way that the actual call will always be done, but the response will be substituted by the mock data you specified. 💡 When to use this extension? 🔸 You are developing a front end that needs to connect to some back end API, but that back end API has not yet been developed or is down. 🔸 You want to give a live demo but the back end API needed is currently not available or broken. 🔸 You would not only like to test the happy flow, but would also like to see how your front end behaves given any possible alternate scenario or edge case. 🔸 You are experiencing a nasty bug but have no way of reproducing it easily using the real back end system. You would like to tweak the response to check if any unexpected response could be the cause of your issue. 💡 How to use this extension? Start by just pressing the Add button to define a mocked response for a specific request. A line will show up on which you can define the HTTP verb/method and the URL-fragment of the request you would like to be mocked. The URL fragment is defined with a regular expression, allowing you to make any matching requirement as loose or strict as you would like it to be. NB In cases where the request also has a payload (like POST), the content of that payload can be used for determining if mocking should take place. On that same line you can then define the status code of your response, the exact response type and the payload to be returned. Once the extension detects the method/URL you expressed, the regular call will still be done. However, once the actual response has been received, no matter it's actual result, it will be replaced by the mocked response you defined. NB Next to being JSON, for any response also SCRIPTcan be specified. In this case plain JavaScript statements can be defined with which the original response can be modified (you can just reference the contextual variable "response").Parrot will wrap your Javascript in a function that receives the response and returns the response after modification. Example (note that no function or return statement is needed): response.someProperty = 'someValue'; response.someArray.push('blabla'); 💡 Multiple mock rules When determining the mock data to be substituted, there can be multiple rules matching the given URL and method. In this case, Parrot will just use the last available mock rule in top-down order. 💡 Timing your calls by adding a delay Particularly for checking for, or debugging of, potential race condition issues, for any request a delay (expressed in milliseconds) can be specified. This delay will be taken into account before the response is returned to the client that made the request. By carefully timing request/response cycles you can make sure that responses will be received in the exact order you would like them to be. 💡 Export and Import your mock rules The set of mock rules can also be exported to the file system using the Export button. This allows you to share your mock data with others and also allows you to create/maintain sets of mock rules. Exported files can easily be reimported by using the Import button. Imported files will be appended to any currently existing mock rules in the extension, allowing you to stack multiple sets on top of each other. 💡 Notification when mock data has been used Every time mock data has been substituted, a small notification will show up. This behavior can be turned off using the popup dialog. The notification will show the path that's being mocked, the number of mock rules applied on it's response and, if applicable, the delay that was taken into account. 💡 Network viewer Parrot will show all asynchronous calls in a compact view directly attached to your content page. This network view offers you the possibility to show and mock any response with the click of one single button. The overview also directly shows which responses were mocked and which responses were original. In case of a mocked response, opening the mock dialog will show you the response that resulted after applying all involved mock rules. 💡 Localhost Localhost resources will not be mocked by Parrot.

5 out of 55 ratings

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

Review's profile picture

Muhammad Aqeel IrshadApr 12, 2024

Amazing! I want to you to add capability to edit response header as well. I am getting an issue. I could not use original response on mocking request body.

Replier's profile picture

Ruud LandmanDeveloperApr 15, 2024

Will take this into consideration and plan an update if applicable.

Review's profile picture

Michael HinrichsJan 3, 2024

PLESE let me move the network viewer window! It's in the way! This app is perfect for any website that DOES'NT have something i need to click on in the bottom right corner. Edit: Thank you. Five stars.

Replier's profile picture

Ruud LandmanDeveloperJan 4, 2024

OK, will work on that on short term.| Update: network viewer can now be dragged .

Review's profile picture

Peter BronsDec 19, 2022

Great tool! Real easy to use and handles the mocking like charm. 5 out of 5!

Details

  • Version
    8.2.2
  • Updated
    February 29, 2024
  • Offered by
    Ruud Landman
  • Size
    3.67MiB
  • Languages
    English (United States)
  • Developer
    Email
    rlandman65@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

Related

Netify

4.7(34)

Debugging proxy that will allow you to intercept and mutate requests from a web page

MockMan - mock APIs

4.1(16)

Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)

Mock:Intercept and directly return data

4.8(4)

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

Rest API Inspector

4.3(6)

This will inspect all the REST API calls and download the API URL along with payload and request details

Parrot Devtools

5.0(5)

Devtools for Parrot

Request Interceptor

4.1(57)

Intercept Requests and add custom rules to modify request/response headers, block/redirect requests, modify query params.

xhr-devtool

5.0(1)

xhr-devtool

Mimic , mock http requests

3.6(5)

Mimic is a seamless mocking tool that runs inside your browser.No configuration needed!

tweak: mock and modify HTTP requests

4.7(148)

Mock or modify your HTTP requests to test, develop and demo your web application

ModResponse - Mock and replay API

4.9(14)

Mock, modify, and replay API. Easy setup. No proxy needed. No code change required.

Mokku

3.6(70)

Adds the API mocker MOKKU to Chrome Developer Tools for seamless integration & testing.

Oh-my-Mock

5.0(8)

Extension for caching and mocking API (XHR/Fetch) responses

Netify

4.7(34)

Debugging proxy that will allow you to intercept and mutate requests from a web page

MockMan - mock APIs

4.1(16)

Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)

Mock:Intercept and directly return data

4.8(4)

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

Rest API Inspector

4.3(6)

This will inspect all the REST API calls and download the API URL along with payload and request details

Parrot Devtools

5.0(5)

Devtools for Parrot

Request Interceptor

4.1(57)

Intercept Requests and add custom rules to modify request/response headers, block/redirect requests, modify query params.

xhr-devtool

5.0(1)

xhr-devtool

Mimic , mock http requests

3.6(5)

Mimic is a seamless mocking tool that runs inside your browser.No configuration needed!

Google apps