mocop
Browse · Docs · Guide · Analyze

MockServer API

API by MockServer · rest

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below). MockServer Proxy is a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding). Both MockServer and the MockServer Proxy record all received requests so that it is possible to verify exactly what requests have been sent by the system under test. MockServer also supports AI integration via MCP (Model Context Protocol), enabling AI agents and LLM-powered tools to programmatically create expectations, verify requests, and manage mock server state. Errors: a request MockServer cannot accept (JSON it cannot read, an expectation or request matcher that fails schema validation, an invalid parameter, or an operation this deployment does not…

Verification: observed. Source: crawl.

Capabilities (116)

  • retrieve AsyncAPI mock status
  • load an AsyncAPI specification
  • create HTTP expectations from an AsyncAPI spec
  • verify AsyncAPI messages
  • retrieve the control-plane audit log
  • diff a baseline set of expectations against another
  • bind additional listening ports
  • register a breakpoint matcher
  • remove all registered breakpoint matchers
  • remove a registered breakpoint matcher
  • list all registered breakpoint matchers
  • list all registered breakpoint matchers (PUT variant)
  • list registered cassettes
  • register or update a record/replay cassette
  • remove a registered cassette
  • get the status of the current chaos experiment
  • start a scheduled multi-stage chaos experiment
  • stop the current chaos experiment
  • apply a saved chaos profile
  • retrieve completed chaos experiment history
  • list saved chaos profile names
  • retrieve a saved chaos profile
  • save a chaos experiment profile
  • delete a saved chaos profile
  • clears expectations and recorded requests that match the request matcher
About · Contact · Privacy