New in WireMock Cloud: Automatically Create Stateful Mocks for Rest APIs

Ever since we’ve released stateful mocking in WireMock Cloud, it’s become one of our most popular features - especially where mocks are used to test multi-step application flows or in cases where you need mocks to reflect app state changes. If you’re not familiar, you can read more about it in our announcement blog or dive deeper by watching the recent workshop recording.
Today we’re introducing a new automation feature to simplify the process of creating stateful mocks for the most common use cases. With the new automated workflow, any WireMock Cloud user can launch a full set of stateful stubs with ready-to-use REST endpoints.
To see a live demo of stateful mock automation, learn about additional new WireMock Cloud features, and ask our team anything you want to know, join the upcoming WireMock Live! session
👀 Watch a short demo here👇
⚙️ How it Works
When creating a mock API using the REST template, you will see an option to create a Stateful Set. This will open a new modal, which will allow you to configure your stateful endpoint by providing a collection path, sample request, and expected response structure.

From there, you have the option to select which stubs you’d like to create. WireMock Cloud will automatically generate all the selected CRUD endpoints (create, read, update, delete) with persistent state management.

And there you have it - from that one sample, you have a fully stateful set of mock endpoints that you can start using to simulate most common use cases and operations, with built-in request-response handling and state management across multiple HTTP methods as well as a default 404 response for unmatched requests.
You can then customize any generated endpoint through the user interface, without needing to understand the complexities of stateful mocking.
For additional details, check out the documentation page.
🤔 What’s the benefit?
This is basically a much simpler and faster way of setting up common stateful mocking use cases, since you don’t need to understand the intricacies of templating or state management in WireMock. This should potentially shave a good few hours off the process of setting up new stateful mocks and enable more developers to start using them in testing, prototyping, and development workflows.
👉 Get started with stateful mocking automation
The new feature is available in all WireMock Cloud plans including the free edition. To see a live step-by-step tutorials join the upcoming live demo and AMA with the WireMock team.
/