expectation

create HTTP expectations from an AsyncAPI spec

Generates HTTP expectations from an AsyncAPI 2.x/3.x spec (JSON/YAML, or a {spec, channelPathPrefix} wrapper) so each channel's example message can be served over plain HTTP without a live broker. One GET expectation is created per channel returning that channel's schema-aware example payload. This is distinct from PUT /mockserver/asyncapi, which loads a spec into the broker-publishing mock. Requires the mockserver-async module on the classpath (501 otherwise).

put/mockserver/asyncapi/http

Request

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

Request body

object required

AsyncAPI spec (JSON/YAML) or a {spec, channelPathPrefix} wrapper

Response

HTTP expectations created from the AsyncAPI spec

Expectation[] required(unresolved $ref)

list of upserted expectations

Changes

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