Set up API mocking infrastructure for integration testing
Create an API mocking setup using:
**Mocking Tool:** {{TOOL}} (WireMock/MockServer/Prism)
**APIs to Mock:** {{API_LIST}}
**Usage Context:** {{CONTEXT}} (Integration tests/Development/Contract testing)
**Mock Configuration:**
1. **Stub Definitions:**
- Request matching (URL, method, headers)
- Response templates
- Dynamic responses
- Stateful behavior
2. **Scenarios to Mock:**
- Success responses
- Error responses (4xx, 5xx)
- Slow responses (latency simulation)
- Timeout scenarios
- Connection failures
3. **Advanced Features:**
- Request templating
- Response delays
- Fault injection
- Proxy recording
- Webhook callbacks
4. **Test Integration:**
- Setup/teardown in tests
- Verification of requests
- Reset between tests
- Dynamic stub creation
5. **Docker Setup:**
- Container configuration
- Volume mapping for stubs
- Docker Compose integration
**Generate:**
- Stub/mapping files
- Docker configuration
- Test integration code
- Recording setup
- Best practices guideOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{TOOL][{API_LIST][{CONTEXT]