Discover the differences between WireMock API mocking and Mockoon's desktop application and CLI mocking features
WireMock is a mocking or stubbing Java library. It enables developers to create mock REST APIs programmatically in their Java applications. Coupled with WireMock Studio, it allows to intercept and proxy requests, or create mock endpoints from the entering requests. The mock API endpoints can account for realistic use cases thanks to a request matching system and a templating language similar to Mockoon's one. WireMock's stubs can also be deployed online using their cloud offering, MockLab.
While Mockoon provides a similar mocking experience, it has a different approach as it offers an offline, privacy-friendly desktop application. Accompanied by a CLI that allows you to deploy your REST mocks anywhere, it gives the power needed to automate your API development and testing. Mockoon is easy to use and has no learning curve. You can easily start using it and create your first mock API in under a minute. From a powerful templating system to generate dynamic and realistic mock data to a proxy mode to partially mock API endpoints, Mockoon takes API mocking to the next level. It also offers many customization options: status codes, dynamic headers, rules system, etc.
What is API mocking for? Discover the different use cases or read our API mocking guide.
WireMock (left) and Mockoon (right) UIs side by side
Features | WireMock | Mockoon |
---|---|---|
Offline/Cloud based | Offline Java library or desktop application with WireMock Studio (Cloud offering: MockLab) | Offline (desktop application) Deploy anywhere with the CLI and Docker image |
Free/paid service | Free | Free |
Open-source | ✔ | ✔ |
CLI | ✔ Java application can be run with the command line | ✔ A CLI and a Docker image are available |
Proxy mode | ✔ Can intercept and forward the traffic | ✔ Documentation |
OpenAPI support | ✖ | ✔ Documentation |
Recording | ✔ Can record entering requests to create stubs | ✔ Mockoon can create mock endpoints based on entering requests |
Response rules | ✔ Request matching system similar to Mockoon's one | ✔ Advanced system of rules |
Dynamic/realistic data | ✔ Templating system similar to Mockoon's one | ✔ Advanced templating system to generate realistic fake data |
File serving | ✔Basic static file serving from dedicated directory | ✔ Documentation |
Custom headers | ✔ At endpoint's level | ✔ At endpoint's and server's levels Supports templating helpers for dynamically generated headers |
Customizable status code | ✔ | ✔ |
Route regex | ✔ | ✔ Documentation |
GraphQL support | ✖ | ✖ |
CORS and pre-flight handling | ✖ Manual setup | ✔ Automatically answers 200 to OPTIONS pre-flight requests Headers can be customized |
Slow network/server simulation | ✔ At endpoint's level | ✔ At server's and endpoint's levels |