ProductUpdated

Why choose Gostly for API mocking?

Choose Gostly when you want to operate a self-hosted API environment built from prepared examples or selected upstream traffic. Keep your application tests responsible for deciding whether those responses produce the behavior you need.

A useful mock lets you put your application in a known API condition and check what happens next. That condition might be a ready order, an expired credential or a failed dependency. The right starting point depends on the response you have, the environment you can run and the test you need to maintain.

A saved fixture, a recorded exchange and a generated example each need review. Response origin helps you understand a fixture; it does not make the application assertion for you. If your existing mock or sandbox already answers the question, there may be no reason to change tools.

Start with one response you can inspect

Inspect the feature documentation or download the synthetic order collection before installing anything. Its saved example returns a ready order. Your test can check the status and parsed fields, then assert an application action such as enabling fulfilment only for a ready order.

Illustrative fixture · synthetic data · GET /orders/order_demo_001 → 200
{
  "id": "order_demo_001",
  "status": "ready",
  "total": 42
}

The Postman import guide explains how to prepare that collection, bind it to a service and route the client request to the right library. It also includes a response check for your test. Start there before expanding the fixture set.

Choose a workflow that fits the job

Recording and saved examples are available in more than one tool. Postman documents both cloud mocks and local JavaScript mocks, and its desktop proxy can capture HTTP/HTTPS exchanges with response saving selected. Follow its platform-specific capture setup. See the official mock documentation and capture guide.

WireMock supports authored stub mappings and can also generate mappings by recording or snapshotting requests proxied to an existing API. Its recording and playback guide and stubbing reference describe those options for preparing the mappings your test will use.

Gostly provides another workflow: run its proxy, operator dashboard and replay library in your environment. Import prepared response examples, or send selected application traffic through the proxy in LEARN mode and build a library for MOCK mode. You choose the service routing and the cases your tests exercise.

You can keep Postman's client and collection tests while calling a configured Gostly service. Collection Runner supports assertions, scripted workflows and mock targeting; see its official guide. The current Postman comparison works through the choices using the same saved order response.

What you configure and check

  1. Install the supported stack. Choose an environment where you can run Gostly and configure your client's traffic path. Follow the current installation and quickstart instructions.
  2. Select the service and response input. Use a prepared import or record the upstream exchanges the test needs. Binding an import to a service does not configure the incoming host or path route.
  3. Inspect the resulting library. Check import warnings, matching inputs, response fields and the data transformations. A stored mock is a fixture to review.
  4. Run the application test in MOCK mode. Check the returned response and the application behavior. For a test upstream you control, deny live access or check its request counter during replay.

Where review and maintenance remain

A library covers the cases you prepared and the matching behavior you configured. Additional paths, errors, state changes or timing conditions need their own setup and checks. Re-recording an upstream can refresh fixture inputs; it does not decide which changes your application should accept.

Importing a Postman collection reuses response examples. It does not execute its pre-request scripts, authentication helpers, assertions or ordered workflow. Missing saved responses can become empty 200 fixtures with warnings. Keep the client, runner and test logic in the tools where you maintain them.

Review source files before upload, including headers, authentication values, URLs, query values and request/response bodies. Capture, import and database processing have different data-handling boundaries. The security overview and security model explain those stages and their limits.

Self-hosting determines where you operate the runtime and replay storage. License validation, telemetry settings, configured upstreams and integrations have separate connection boundaries. Include installation, storage access and fixture maintenance in your choice.

When Gostly is a useful fit

  • You want to operate a service-specific API environment alongside your application.
  • You have useful saved examples or can capture selected upstream exchanges, and can review what becomes a fixture.
  • You want your existing application tests or agent evaluation harness to run against configured API conditions, while keeping their own assertions and scoring.

When it might not be

Keep your current approach when an ordinary fixture, sandbox or contract-testing workflow already does the job well. Reconsider the fit if you cannot operate the supported stack or route the client through it.

Serving controlled responses is one part of a test. If the job is to implement an API's business logic, validate a contract or score an agent, choose the tools and acceptance criteria for that job as well.

Getting started

Inspect the saved example, choose one application assertion and follow the supported setup. Gostly starts with a 14-day Pro trial, no credit card required. A subscription is required after the trial; see the current plans and terms.

← Back to blog

Resources

Try a concrete workflow

Explore feature documentation

Choose a small API condition and identify what your application should check.

Browse the documentation

Reuse a saved response

Prepare the synthetic collection, review import boundaries and configure its service route.

Follow the Postman import guide

Compare the supported workflows

Consider Postman cloud mocks, local JavaScript mocks and Gostly using the same saved response.

Read the Postman comparison

Start with a response your test needs.

Configure one service, inspect the fixture and check the behavior in your own application. Expand the environment when that first test gives you a useful result.