The Create Stateful Endpoint Set feature in WireMock Cloud automates the creation of pre-configured stateful stubs. This allows for quick setup of RESTful API mocks with built-in request-response handling and state management across multiple HTTP methods. Using this feature, WireMock Cloud automatically generates:Documentation Index
Fetch the complete documentation index at: https://docs.wiremock.io/llms.txt
Use this file to discover all available pages before exploring further.
- GET, POST, PUT, and DELETE stubs for the specified resource
- A default 404 response for unmatched requests
How It Works
You provide:- Create a new REST mock API
-
Click the Stateful Set button near the bottom of the stub list:

-
Supply a POST endpoint page (e.g.,
/users):
-
Provide a sample request body for the
POSTe.g.:
-
Input a correlated sample response body for the given request body
e.g.:

-
At the bottom of the dialog, select which operations you’d like stubs to be created for:

-
Click the Create Stateful set button:

- A POST stub that creates a new resource in the mock API’s stateful memory
- A GET stub that lists all of the resources stored in the mock API’s stateful memory
- A GET stub that retrieves a stored resource by its identifier
- A PUT stub that updates the stored data of a resource
- A DELETE stub that removes the stored resource
- A DELETE stub that removes all stored resources from the mock API’s stateful memory
- A fallback 404 response for unknown requests