Prism, an Open-Source HTTP Mock & Proxy Server

Accelerate API development with realistic mock servers, powered by OpenAPI documents.

GitHub
Watch the Video
Read the Docs

Work with your API before you write any code

Prism is an open-source HTTP mock server that can mimic your API’s behavior as if you already built it. Mock HTTP servers are generated from your OpenAPI v2/v3 (formerly known as Swagger) documents.

Quickly iterate on your API

The waterfall model does not work well for building APIs. Learning at the very end what your potential consumers think about your software can be a source of huge problems. With Prism you can move the feedback stage to the design phase of your API by providing a real server to use and play with.

https://d33wubrfki0l68.cloudfront.net/549c582a83481db1bd57a7b70a74190a1501bddc/2baa7/images/prism/prism_mocking.png

Generate dynamic examples

Static examples in mock APIs can bias the way you write the code and test the API. Prism can generate dynamic random examples based on your API description, so the examples are always valid.

https://d33wubrfki0l68.cloudfront.net/861cb7f2ec4325a6760deb3a6b156785c1987bd7/6837c/images/prism/prism_dynamic.png

Validate input and output

Prism validates both request and response data. If you have an invalid example in the specification, Prism will let you know; if your request is not compliant with the rules of your API specification, Prism will return an error message. It will never yell to you, we promise.

https://d33wubrfki0l68.cloudfront.net/5a9c68801ea4c6f27d6c40a2041172cae4528809/631f8/images/prism/prism_validation.png

Mocking Callbacks

Requests and responses take care of a lot of API interactions, but what about callbacks? OpenAPI v3.0 allows API designers to define callbacks, and construct a URL to fire a payload at, so Prism will too. Notice HTTP callbacks coming in, allowing you to attempt to integrate them before the API has even been built.

https://d33wubrfki0l68.cloudfront.net/476299a3bfcc75339f06564eca469ae0b22dd657/1990d/images/prism/prism_callback.png

Validation Proxy

Identify discrepancies between the OpenAPI document and target API to help frontend developers integrating with your API. The proxy can also be enabled in staging or any other pre-production environment, to ensure OpenAPI documents and code stay in sync.

https://d33wubrfki0l68.cloudfront.net/890e9618f030b6fe50dcf840c15fcf094c467a53/405bb/images/development/validation.svg
Ready to Mock Your API in Minutes?