TheOneX Mock – API Mocking for REST & GraphQL
Overview
Mock API responses, rewrite requests and modify headers for REST and GraphQL.
TheOneX Mock lets developers and QA engineers control what an API returns, straight from the browser: no proxy, no code changes, no backend work. Mock a 500 on one GraphQL operation, make a call fail once and then succeed, point the same rules at STG or CI with one click, and export the evidence for your ticket. WHAT YOU CAN DO • Mock responses: any status code, headers and body for a matching call, with an optional delay to simulate a slow network. • Modify requests: send a call to a different URL, or replace or merge the JSON body before it leaves the browser. • Modify headers: set or remove request and response headers. REST AND GRAPHQL • Match REST calls by URL (contains, equals, wildcard or regex) and HTTP method. • Match GraphQL calls by operation name, operation type or query text, so you can mock one operation while every other call to the same /graphql endpoint stays real. • Override GraphQL variables by merging JSON into the request. • Ready-made templates for GraphQL data and errors responses. TEST FAILURES AND RETRIES • Faults: make a call fail like a real outage: network error, timeout, connection reset or offline. • Quick status buttons for 429, 500 and 503 (429 adds a Retry-After header). • Sequences: give each call a different answer. For example, fail the first call with a network error, then return the normal response, to check retry logic and error screens. Sequences can repeat. ENVIRONMENT PROFILES • Create profiles such as STG, CI and Local, each with its own variables. • Write {{host}} (or any variable) in a rule's URL, body or headers; the active profile fills it in. • Limit a rule to some profiles, and switch profiles in one click from the dashboard or the toolbar popup. Open pages pick up the change without a reload. START FROM REAL TRAFFIC • Import a HAR file (DevTools → Network → Save all as HAR) or a Postman collection, and each API call becomes a mock rule with its real status, body and headers. Imported rules start switched off so you can review them first. SEE MOCKS IN THE DEVTOOLS NETWORK TAB Set a mock to "Visible in Network tab" and the call appears in DevTools with your mocked status and body, like a real response. Chrome attaches only to tabs on the same site as the rule, and shows its "started debugging this browser" banner while this mode is in use. EVIDENCE FOR YOUR TICKETS • The Activity tab lists every call a rule handled: mocked, failed on purpose, or modified, with the step number for sequences. • Download the calls as a HAR file, or copy a Markdown summary table ready to paste into Jira or a QA report. • On-page toasts confirm each mock as it happens, and explain when a rule did not match (for example, a different GraphQL operation name). BUILT FOR DAILY TESTING • Turn all rules on or off with one switch, or toggle rules from the toolbar popup. • Rule changes apply immediately, no page reload. • Import and export rules and profiles as JSON to share a setup with your team. • Light and dark themes. • Mocked responses carry an "x-mocked-by: TheOneX Mock" header so they are never mistaken for real ones. PRIVACY TheOneX Mock has no server and no analytics, and makes no network calls of its own. Your rules and profiles are stored only in your own browser, and the activity log is cleared when Chrome closes. Query strings are never logged. Nothing is collected or sent anywhere. LIMITS Mocking and request rewriting apply to fetch and XMLHttpRequest calls made by pages and iframes. Calls from service workers or web workers, page navigations and WebSocket messages are not intercepted. Mock and request rules run inside the page, so keep passwords and tokens out of them; use a header rule for an Authorization header.
5 out of 51 rating
Details
- Version1.9.1
- UpdatedNovember 29, 2026
- Size59.49KiB
- LanguagesEnglish
- Developer
Email
Gokulganapathy95@gmail.com - Non-traderThis 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
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