Prism is an HTTP mocking and validation server developed by Stoplight to simplify API design, development, and testing. It transforms API specifications into interactive mock servers that simulate endpoints before backend implementation is complete. The application supports OpenAPI specifications and Postman collections. Its response generation capabilities use predefined examples or dynamically generated data based on API schemas. Incoming requests can be validated against documented parameters, headers, and request body requirements. Its validation proxy forwards traffic to existing APIs and identifies discrepancies between implementations and their specifications. Prism supports self-hosted deployment, containerized environments, and continuous integration workflows.
Features
- Automatic HTTP mock server generation from OpenAPI specifications and Postman collections
- Static example-based and dynamic schema-based mock response generation
- Incoming API request validation against documented schemas and parameter requirements
- HTTP content negotiation for selecting appropriate response representations
- Validation proxy for detecting discrepancies between API implementations and specifications
- Self-hosted deployment with Docker and continuous integration workflow support