Behind the Curtain: Why ProxyCeptor Is Built the Way It Is
The unpolished version.
The decisions we made on purpose, the constraints that forced our hand, and why one small JSON shape ended up running everywhere.
Someone had to say it.
The backend is "two more days" away. It has been two more days for a while. Here is a spicy position: the UI should never wait for it.
Every team has met it. The design is approved, the UI is ready to start, and the endpoint returns 404 because it does not exist yet. So the front-end waits, or worse, hardcodes fake data inside components and forgets to delete it.
Waiting is expensive in a quiet way. Nobody files a ticket called "lost three days". The work just lands late and gets tested in a hurry.
A UI that only works when the backend is up has not been tested. It has been lucky.
Write down the JSON the endpoint will return. Then intercept the request in the browser and answer it with that JSON. With ProxyCeptor that is one rule: match the URL, choose a mock response mode such as replace-whole, paste the body. The page cannot tell the difference.
When the real endpoint lands, disable the rule. If the shapes really matched, nothing changes. If they did not, you found out on day one of integration instead of day nine.
The happy path is easy to see. The interesting part is what your UI does when the API returns a 500, takes ten seconds, or sends an empty list. A real backend rarely fails on demand. A mock fails whenever you ask.
Mocks do not replace contract tests or an integration environment. They replace waiting. Keep the mock honest by generating it from the same example the backend team signs off on, and delete rules that outlive their purpose.
Only if the agreed shape drifts. Keep one shared example per endpoint and disable the mock the day the real one lands, then compare.
No. Rules intercept the request in the browser, so the app code stays exactly as it will ship.
The unpolished version.
The decisions we made on purpose, the constraints that forced our hand, and why one small JSON shape ended up running everywhere.
Create a free ProxyCeptor account to mock, delay, block and rewrite API traffic, then share the same rules with your team.