Skip to content

leeturner/wiremock-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wiremock-cli

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.

Docs

For guidance on the functionality provided by Wiremock administration API, please refer to the Administration API on the Wiremock website.

Current status

Wiremock CLI is currently in alpha stage, but still provides a number of useful features. Full documentation can be found here.

Feature parity with Wiremock admin API

Mappings

  • 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

Requests

  • 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

Near Misses

  • 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

Recordings

  • 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

Scenarios

  • GET - /__admin/scenarios - Get all scenarios
  • POST - /__admin/scenarios/reset - Reset the state of all scenarios

System

  • 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

About

A simple CLI to access the Wiremock admin API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published