MockMan - Mock APIs
MockMan is a free Chrome add-on developed by sudobird. It falls under the category of Browsers and is specifically classified as an Add-ons & Tools program.
Designed to increase productivity in frontend development, MockMan allows developers to define requests for AJAX calls by specifying the URL, method, and mock response. It supports popular libraries like axios, superagent, XMLHttp, and fetch.
Users can choose to create a JSON object as the response or simulate an error. Additionally, MockMan offers a JSON formatter and viewer, making it easier to visualize data in a collapsible form.
One unique feature of MockMan is the ability to individually enable or disable mocking for each request. There is also a global power switch to turn off mocking for all requests at once.
For convenience, MockMan provides a JSON object maker that allows users to create objects in JavaScript syntax, which is then automatically converted into a valid JSON object.
Users can import requests from a file and export them to a file as well.
To use MockMan, simply define the API URL, method, and response JSON or error message to be mocked. After refreshing the project, the AJAX request will be mocked, and the mocked URL will disappear from the network tab and appear in the console.