Introduction
Welcome
Imposter is a mock server for REST APIs, OpenAPI (and Swagger) specifications, SOAP web services (and WSDL files), 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.
Getting started
To begin, check out the Getting started guide. See the Core concepts section below, or read a product summary.
Core concepts
Developing mocks
- Advanced request matching
- Interceptors
- OpenAPI validation
- Template queries
- Performance simulation
- Failure simulation
- Generating fake data
- CORS
- Groovy scripting tips
- JavaScript compatibility
- Examples
Data capture and storage
Configuration
- Configuration guide
- Configuration location
- Scaffolding configuration
- Environment variables
- Proxy an existing endpoint
- Recursive configuration discovery
- Bundling configuration
Run and deploy
Operational topics
Mock types
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).
- HBase - Basic HBase mock implementation.
- SFDC (Salesforce) - Basic Salesforce mock implementation.
- WireMock - Support for WireMock mappings files.
Learn more
Other
Product
Tutorials
- Mocking APIs with OpenAPI and Imposter
- Mocking REST APIs with Imposter
- Mocking SOAP web services with Imposter