← All features

Mock server

Build the front end before the API

Right-click a folder and choose Mock server. Its requests become routes on http://localhost:4010, answered with their saved responses, so a web app or client can be built and tested without the real API.

Every route says where its answer comes from, and every request is logged.

Routes from your requests

Each request becomes a route: its method, and its path with any {{variable}} matching any value, so /pets/{{id}} answers /pets/7.

Answers you've already got

A route answers with the request's snapshot, or else its latest response this session. Send a request, press Reload, and it's mocked.

OpenAPI too

An OpenAPI description the files name adds a route per operation, answering with its example or one made up from the schema.

Same files, either API

Point an environment's baseUrl at the mock and the same .http files work against it, tests included.

Friendly to web apps

A web app on any localhost port can call it, while other sites can't read its responses. Unknown paths get a 404 listing the routes, and a wrong method a 405.

From the command line

reqjet mock api/ --port 4010 runs the same mock in a terminal or a CI job, until Ctrl+C. It can mock an OpenAPI file directly.

Reqjet logo

Try it on your own requests

Free for Windows, macOS and Linux, and it opens the .http files you already have.