Understand Prism Mocking
masterPrism provides a mock HTTP server that acts as a fake implementation of an API at the HTTP level. It uses an OpenAPI (v2 or v3) description document as the source of truth to make decisions about responses.
Key behaviors include:
- Responding to expected endpoints based on the OpenAPI definition.
- Erroring for non-existent endpoints.
- Providing realistic validation errors if a client sends an invalid request.
Note: Prism is currently an HTTP server run from the command line and is not yet intended for programmatic mocking within test suites.