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.
| Task | Prism | Gostly |
|---|---|---|
| Starting input | An existing or supplied OpenAPI document or Postman Collection. | Capture a permitted nonproduction HTTP exchange, review it and build the service library. |
| Mock response source | Spec 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 checked | Mock 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 variants | Select 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 test | Define 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 license | Documented 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.
- Known response. Select a documented example or reviewed HTTP exchange. Check the status, meaningful body fields and resulting application behavior.
- 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.
- 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.
- 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
- Official Prism repositoryOpenAPI and Postman inputs; mock server and validation proxy workflows.
- HTTP mockingSupplied examples, response selection and schema generation.
- Request validationChecks against declared request constraints.
- Validation proxyLive upstream contract checks, reporting choices and the documented 501 mock attempt.
- Dynamic response generationExplicitly configured Faker and JSON Schema Faker generation.
- InstallationCLI/npm, standalone binaries and Docker operation.
- ConceptsMocking and validation workflow context.
- Project licenseApache License 2.0 for the open-source project.