
I just needed a quick mock API, not a whole setup
I needed a mock API last week. Not a full mock server setup — just a quick endpoint that returns some JSON so I could test my frontend without waiting on the backend team. I tried the usual suspects. json-server needs a local setup. Mockoon is a desktop app. Beeceptor wants me to sign up. Mocky.io works but the responses are static — no faker data, no conditional logic. So I built one into webtoolz . What it does You define endpoints (GET /users, POST /orders/:id, whatever), set up the response body with template variables, and get a live URL. That's it. The response body supports faker.js placeholders: { "id" : "{{uuid}}" , "name" : "{{faker.person.fullName}}" , "email" : "{{faker.internet.email}}" , "joined" : "{{now}}" } Every request generates fresh data. You also get access to path params, query strings, headers, and request body via {{params.id}} , {{query.page}} , etc. The parts I actually use Sequence mode — return a 500 on the first call, then 200 on retry. Great for testing e
Continue reading on Dev.to JavaScript
Opens in a new tab




