control

clears expectations and recorded requests that match the request matcher

put/mockserver/clear

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/clear
  • Auth: none declared

Query parameters

type'all' | 'log' | 'expectations'

specifies the type of information to clear, default if not specified is "all", supported values are "all", "log", "expectations"

namespacestring

tenant filter - ignored for type=log. For type=expectations or type=all, when present, clears only that namespace's expectations and leaves the event log untouched entirely (even with type=all), leaving expectations in other namespaces and global (no-namespace) expectations intact. Takes precedence over the request-matcher / expectation-id body for selecting which expectations to clear. When omitted, the namespace is taken from the request header named by the matchNamespaceHeader configuration property, if set; when neither is present the clear is unscoped (all namespaces, and type=all clears the event log too).

Request body

OR

Response

expectations and recorded requests cleared

Changes

No recorded changes to this operation across all 1 revision of this API.