Wiremock CLI is a convenient way to interact with the Wiremock admin API
Note: this software is currently under active development: anything can change at any time, API and UI must be considered unstable until we release version 1.0.0. At the moment this has only been tested on a locally running Wiremock server, via http (not https) and with no authentication.
For guidance on the functionality provided by Wiremock administration API, please refer to the Administration API on the Wiremock website.
Wiremock CLI is currently in alpha stage, but still provides a number of useful features. Full documentation can be found here.
- GET - /__admin/mappings - Get all stub mappings
- GET - /__admin/mappings/{id} - Get a stub mapping by ID
- DELETE - /__admin/mappings - Delete all stub mappings
- DELETE - /__admin/mappings/{id} - Delete a stub mapping by ID
- POST - /__admin/mappings - Create a new stub mapping
- POST - /__admin/mappings/import - Import stub mappings
- POST - /__admin/mappings/save - Save stub mappings
- POST - /__admin/mappings/reset - Reset stub mappings
- PUT - /__admin/mappings/{id} - Update a stub mapping by ID
- GET - /__admin/requests - Get all requests in journal
- GET - /__admin/requests/{id} - Get a request by ID
- DELETE - /__admin/requests - Delete all requests in journal
- DELETE - /__admin/requests/{id} - Delete a request by ID
- POST - /__admin/requests/count - Count requests by criteria
- POST - /__admin/requests/remove - Remove requests by criteria
- POST - /__admin/requests/remove-by-metadata - Remove requests by matching metadata
- POST - /__admin/requests/find - Find requests by criteria
- POST - /__admin/requests/find-by-metadata - Find requests by matching metadata
- GET - /__admin/requests/unmatched - Get all unmatched requests in journal
- GET - /__admin/requests/unmatched/near-misses - Get all near misses for unmatched requests
- POST - /__admin/near-misses/request - Find near misses matching specific request
- POST - /__admin/near-misses/request-pattern - Find near misses matching specific request pattern
- GET - /__admin/recordings/status - Get recording status
- POST - /__admin/recordings/start - Start recording
- POST - /__admin/recordings/stop - Stop recording
- POST - /__admin/recordings/snapshot - Take a snapshot of the current recording
- GET - /__admin/scenarios - Get all scenarios
- POST - /__admin/scenarios/reset - Reset the state of all scenarios
- GET - /__admin/version - Return the WireMock version
- POST - /__admin/shutdown - Shutdown WireMock
- POST - /__admin/reset - Reset mappings and request journal
- POST - /__admin/settings - Update global WireMock settings