MockMan - mock APIs

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

什麼是MockMan - mock APIs?

MockMan - mock APIs是由sudobird開發的Chrome擴展程式,該擴展的主要功能是“Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)”。

擴展截圖

screenshot
screenshot
screenshot

下載MockMan - mock APIs擴展crx文件

下載MockMan - mock APIs擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        This is essentially built to increase productivity in frontend development. Made for developers, it lets users to define requests (url, method and mock response) for AJAX calls. 
Supports all common libraries like axios, superagent, XMLHttp, fetch etc. 
Response can be a JSON object or an error. 
It includes JSON formatter, and JSON viewer to better visualise data in collapsible form. 

Each request can be individually turned on/off to apply mocking. 
There's a global power switch to turn off mocking all the requests 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 are regex enabled
2. Labels for requests, 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 to request.

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

擴展基本資訊

名稱 MockMan - mock APIs MockMan - mock APIs
ID bigfgeehfoenaimkoohnokeeideaomnd
官方網址 https://chromewebstore.google.com/detail/mockman-mock-apis/bigfgeehfoenaimkoohnokeeideaomnd
簡介 Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)
檔案大小 2.3 MB
安裝次數 1,887
目前版本 4.2.0
更新時間 2023-09-20
上架時間 2020-07-08
評分 4.45/5 共 11 次評分
開發者 sudobird
電子郵箱 [email protected]
付費類型 free
擴展官網 https://mockman.dev/
支援的語言 en
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.2.0",
    "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:\/\/\/*"
            ]
        }
    ]
}