Prism vs Gostly

Compare document-defined HTTP mocks and live contract checks with a reviewed HTTP case. Choose the response your application assertions need to inspect.

  • Self-hosted
  • Runs on Docker Compose
  • Built from real API traffic
  • Your test data, your control
  • Use the tests you already run

Gostly as a Stoplight Prism alternative

Gostly is a self-hosted API mocking tool. It builds its mock library from real API traffic, or from HAR captures and OpenAPI examples you import, then adds the errors, delays, state changes and simulated API time your tests need. In MOCK mode it answers from that library and does not call the upstream API.

14-day Pro trial. Runs on Docker Compose in your environment. See pricing

Compare one HTTP case

Start with the response and the check your application needs. A supplied example, a generated value and a reviewed recording are different inputs to that check.

TaskPrismGostly
Starting inputAn existing or supplied OpenAPI document or Postman Collection.Capture a permitted nonproduction HTTP exchange, review it and build the service library.
Mock response sourceSpec examples or generated values. When generation is needed, static is the default; dynamic generation is a configured choice.Use the reviewed service library, configure the service route and confirm effective MOCK.
What is checkedMock requests are checked against the supplied document. A separate validation proxy checks real upstream request/response traffic.Apply your application's assertions to the selected response and resulting behavior.
Normal and error variantsSelect the intended documented status or supplied example, then check the caller's expectation.Prepare the selected response, error or delay and inspect the client result.
State for the testDefine the required transitions and how their starting state and reset will be provided for the case.Define the request order and starting conditions, then check each response and the resulting application state.
Operation and licenseDocumented CLI/npm, binary or Docker setup; Apache-2.0 project license.Run the supported licensed stack with a Gostly account and license key. Current trial terms are below.

Gostly’s licensed platform starts with a 14-day Pro trial, without a credit card. Product access continues with a subscription.

Mocking and live contract checks

Prism accepts a supplied API description, including OpenAPI documents and Postman Collections. The description can already exist or come from an API owner. In mock mode, Prism uses supplied examples when available, with static schema generation as the default when generation is needed. Dynamic generation is an explicit choice.

The validation proxy is a separate workflow. It uses a real upstream and checks request/response traffic against the supplied document, with a deliberate error-reporting choice. The guide also documents trying a mock when the upstream returns 501. Inspect the response source as well as the reported contract discrepancies.

A contract check and an application assertion answer different questions. Keep the declared response requirements, the response used in the test and the client's resulting behavior visible. Neither a generated value nor a captured exchange establishes that the application handled it correctly.

Choose the obligation you need to check

  • For document-defined mocking, review the supplied operation, status and example your client should receive.
  • For live contract validation, select the supplied document and upstream, then decide how reported discrepancies should affect the check.
  • For a Gostly HTTP case, capture a permitted exchange, review and build the library, configure the route and confirm effective MOCK before applying your application assertion.

A recording observes a selected exchange. Review it before treating it as an expected response; keep the provider contract and the application assertion separate.

Review the data and the setup

Review document examples, defaults, request headers and retained copies before use. An example in an API document can contain sensitive data; document-driven mocking does not remove that review. Check the connections and data retained by either setup.

Prism's open-source project uses the Apache-2.0 license. Its installation guide covers CLI/npm, standalone binaries and Docker. The Gostly workflow here uses the supported licensed stack with a Gostly account and license key.

Prepare your evaluation

Use the same caller for the selected workflows. Write the expected response and application assertion before running each case.

  1. Known response. Select a documented example or reviewed HTTP exchange. Check the status, meaningful body fields and resulting application behavior.
  2. Meaningful variation. Change one request or response condition. Keep a normal-case control and a wrong request that must not be accepted as the intended match.
  3. Live contract obligation. When using Prism's validation proxy, choose a declared constraint and inspect the report from the real upstream path, including any configured mock response path.
  4. Starting state. If the case needs a sequence, define the transitions and how you will provide and reset the starting state. Verify those boundaries for the case rather than assuming a whole-environment reset.

This is a reader-authored evaluation plan, not a record of executed tests. The Gostly path described here starts from the reviewed HTTP exchange; it does not describe a native Prism-project import.

References

Read the official Prism documentation

FAQ

Do I need an API specification to use Gostly?

No. You can capture a permitted HTTP exchange in LEARN, build the library and confirm the service is in MOCK before running your test.

Can I use Gostly with my existing test runner?

Yes. Your application or test runner calls the configured Gostly service and keeps its own assertions. Check both the response and the resulting application behavior.

What should I bring to the Gostly trial?

A reviewed nonproduction HTTP exchange and an application assertion. Use a Gostly account and license key with the supported stack, configure the service route, complete the library build and confirm effective MOCK. Review retained data and configured connections.

Resources

Explore Gostly in more detail

Start from a recorded HTTP exchange

Follow a worked example from capture to a reviewed library, then check the response with your own application assertion.

Explore record and replay

Choose the API condition to test

Explore controlled failures, slow responses and simulated time with the tests you already run.

Explore API simulation

Set up one Gostly service

Prepare the supported stack, configure a service route and check your application against it.

Read the setup guide

Optional · Full stack

Train a model to simulate any API or service.

The model learns from the HTTP exchanges between your application and the service, whoever runs it: a payment provider, a partner, another team. Choose the exchanges you have reviewed, train a small adapter on your own compute, and attach the version you choose. Every answer says whether it was stored, retrieved or generated.

  • Full stack
  • Your own compute
  • Reviewed examples

See how a model is trained

  1. 1Choose traffic (current)
  2. 2Train a version
  3. 3Attach adapter

Service + URI filter

ServiceDemo API

URI filter/gostly-demo/anything/*

ExchangesThe ones you reviewed

Try Gostly with the APIs your app calls

Capture an HTTP exchange, build your library and check the result with your application.