| layout | default |
|---|---|
| title | Documentation |
| description | Imposter Mock Engine |
Imposter is a mock server for REST APIs, OpenAPI (and Swagger) specifications, SOAP web services (and WSDL files), gRPC (and protobuf) services, Salesforce and HBase APIs.
- Run standalone mock servers in Docker, Kubernetes, AWS Lambda or on the JVM.
- Embed mocks within your tests (JVM or Node.js) to remove external dependencies.
- Script dynamic responses using JavaScript, Groovy or Java.
- Capture data from requests, then store it or return a templated response.
- Proxy an existing endpoint to replay its responses as a mock.
To begin, check out the Getting started guide. See the Core concepts section below, or read a product summary.
- Advanced request matching
- Interceptors
- OpenAPI validation
- Template queries
- Directory-based responses
- Performance simulation
- Failure simulation
- Generating fake data
- CORS
- JavaScript scripting tips
- Groovy scripting tips
- JavaScript compatibility
- Examples
- Configuration guide
- Configuration location
- Scaffolding configuration
- Environment variables
- Proxy an existing endpoint
- Recursive configuration discovery
- Bundling configuration
Imposter provides specialised mocks for the following scenarios:
- OpenAPI - Support for OpenAPI (and Swagger) API specifications.
- REST - Mocks RESTful or plain HTTP APIs.
- SOAP - Support for SOAP web services (and WSDL files).
- gRPC - Support for gRPC services using
.protofiles. (5.x only) - HBase - Basic HBase mock implementation.
- SFDC (Salesforce) - Basic Salesforce mock implementation.
- WireMock - Support for WireMock mappings files.