WireMock is a tool for building mock APIs. Create stable development environments, isolate yourself from flakey 3rd parties and simulate APIs that don't exist yet.
WireMock frees you from dependency on unstable APIs and allows you to develop with confidence. It's easy to launch a mock API server and simulate a host of real-world scenarios and APIs - including REST, SOAP, OAuth2 and more.
Advanced request matching
Dynamic response templating
Run in your unit tests, on your laptop or in your test environment.
Fault and latency injection
Record / Playback
Java, Python, HTTP and
JSON file APIs
WireMock is available as a standalone service, Java library and integrations for modern languages and technology stacks.
Add the following to your project's pom.xml dependencies:
Add the following to your project's build.gradle:
Add the following to your project's build.gradle.kts:
Add the following to your project’s build.sbt:
Download the latest standalone JAR then run the following in a terminal:
Learn more in the running standalone guide.
Run the following in a terminal:
Learn more in the Docker guide.