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

Latest Version

Version
4.3.2
Update
May 17, 2024
Size
2.3MiB
Developer
Category
Users
2,000+
Rating
4.05882 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
UnlimitedStorage
See more

MockMan - mock APIs Extension

This is essentially built to increase productivity in frontend development. Made for developers, it lets users to define rules (url, method and mock response) to respond to AJAX calls.
Supports all common libraries like axios, superagent, XMLHttp, fetch etc.
Response can be a JSON object or an error.
It includes a JSON formatter to automatically convert your response in proper json format.

Each rule can be individually turned on/off to apply mocking.
There's a global power switch to turn off mocking all the rules at once.

The JSON object maker lets users to make the object in JS syntax and the formatter will convert it into valid JSON object with inverted commas and no trailing commas etc.

Features:
1. Urls can be absolute complete paths or regex enabled.
2. Labels for rules, so user can add different versions of same api
3. Delay in response
4. Test your app with success and error responses.
5. Add response headers along with mock response in the rule.

Steps for Users -
1. Define the api url, method, response JSON or error msg to be mocked.
2. Refresh the project and the ajax / fetch request will be mocked. Mocked url will disappear from network tab and appear in console if rule matches.

For any query or bug report or feature request - reach out to [email protected].

This extension is made with love for fellow developers. If this helps you, support us with good reviews :))
Let's build stuff.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "MockMan - mock APIs", "description": "Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)", "version": "4.3.2", "action": { "default_icon": "assets/icon-dark.png" }, "devtools_page": "devtools.html", "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": [""], "run_at": "document_start", "all_frames": true, "js": ["globals.js", "content-script.js"] } ], "sandbox": { "pages": ["sandbox.html"] }, "permissions": [ "storage", "unlimitedStorage" ], "web_accessible_resources": [ { "resources": ["app/*", "mocky.prod.js"], "matches": ["*://*/*"] }, { "resources": ["app/*", "mocky.prod.js"], "matches": ["file:///*"] } ]}
Read more

How to download and manually install MockMan - mock APIs extension for Chrome

Looking for a way to install MockMan - mock APIs extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install MockMan - mock APIs extensions manually, this article outlines two simple methods to effortlessly install MockMan - mock APIs extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download MockMan - mock APIs extension and manually install through Drag &Drop

If you ever need to manually install a MockMan - mock APIs extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the MockMan - mock APIs Extension by clicking the "Download CRX" button on the website.

Look for the MockMan - mock APIs extension you wish to install. Go to the website and download the MockMan - mock APIs extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for MockMan - mock APIs extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the MockMan - mock APIs extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download MockMan - mock APIs extension for Chrome and install in Developer Mode

This is another method to install MockMan - mock APIs extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the MockMan - mock APIs extension file

Select and download the MockMan - mock APIs extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the MockMan - mock APIs extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your MockMan - mock APIs extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the MockMan - mock APIs extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install MockMan - mock APIs extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

tweak: mock and modify HTTP requests Extension · Developer Tools 2,000+ 190 ★ 3.22MiB

icon

Mock:Intercept and directly return data Extension · Developer Tools 2,000+ 6 ★ 487KiB

icon

Request Interceptor Extension · Developer Tools 2,000+ 58 ★ 1.89MiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 2,000+ 1227 ★ 876KiB

icon

Parrot API mocking Extension · Developer Tools 2,000+ 5 ★ 3.6MiB

icon

Browser Proxy Extension · Developer Tools 2,000+ 1 ★ 2.54MiB

icon

Oh-my-Mock Extension · Developer Tools 2,000+ 8 ★ 7.07MiB

icon

Mockiato: Mocks on the Fly! Extension · Developer Tools 2,000+ 8 ★ 477KiB

icon

ModResponse - Mock and replay API Extension · Developer Tools 2,000+ 23 ★ 454KiB

icon

Mokku Extension · Developer Tools 2,000+ 76 ★ 3.28MiB

icon

Mock Proxy Extension · Developer Tools 2,000+ 4 ★ 2.03MiB

icon

xhr-devtool Extension · Developer Tools 2,000+ 1 ★ 51.34KiB

icon

Netify Extension · Developer Tools 2,000+ 40 ★ 1.24MiB

icon

Mimic , mock http requests Extension · Developer Tools 2,000+ 5 ★ 2.48MiB

icon

YMock: Mock API calls info Extension · Developer Tools 2,000+ 2 ★ 1.68MiB

icon

Interceptor Extension · Developer Tools 2,000+ 2 ★ 180KiB

icon

Chrome Response Override Extension · Developer Tools 2,000+ 15 ★ 488KiB

icon

Tamper Dev Extension · Developer Tools 2,000+ 29 ★ 532KiB

icon

Ajax Modifier Extension · Developer Tools 2,000+ 48 ★ 2.08MiB

icon

Request Interceptor Extension · Developer Tools 2,000+ 12 ★ 23.97KiB

icon

Ajax Proxy Extension · Developer Tools 2,000+ 8 ★ 835KiB

icon

Ajax Interceptor Tools Extension · Developer Tools 2,000+ 12 ★ 2.31MiB

icon

URL Throttler Extension · Developer Tools 2,000+ 31 ★ 38.13KiB

icon

Scripter debugger extension Extension · Developer Tools 2,000+ 2 ★ 1.04MiB

User reviews

icon

Мадам Брошкина (ID: 000000a4244a600f) Voted 5 ★ - Updated 12/08/2024 Works great, helps a lot

icon

Andrew Raymond (BizTech) (ID: 0000003104d661a0) Voted 5 ★ - Updated 10/18/2022 Simple and great! I think the one basic thing that is missing I think is the ability to give a custom name to the mock data. The URL name works, but if you want different mocks for the same URL, it's hard to remember which mock data set I'm turning on.

icon

Fabio Issamu Oshiro (ID: 00000045f3806074) Voted 5 ★ - Updated 06/15/2022 Just works!

icon

kami kamyar (ID: 000000f18cf1d9d7) Voted 5 ★ - Updated 05/22/2022 regex does n't works on url please fix it

icon

Try Setyo Utomo (ID: 00000028dc65e600) Voted 5 ★ - Updated 05/17/2022 very great extension to mock the Frontend side while waiting Backend API , hopefully the developer be able to improve this extension,