Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)
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.
Latest reviews
- (2024-12-08) Мадам Брошкина: Works great, helps a lot
- (2022-10-18) Andrew Raymond (BizTech): 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.
- (2022-06-15) Fabio Issamu Oshiro: Just works!
- (2022-05-22) kami kamyar: regex does n't works on url please fix it
- (2022-05-17) Try Setyo Utomo: very great extension to mock the Frontend side while waiting Backend API , hopefully the developer be able to improve this extension,
- (2021-03-18) Matt Payne: Just what I needed. Works great. Less laggy than a couple of other others. Clean interface. I do wish it also had the ability to replace the headers as well, but what it does works well.
- (2020-12-30) Jose Antonio Gómez: After trying out more than 5 extensions, this was the only one which worked :))