generate

Configures a mock /api/generate endpoint using a Java Consumer to specify the request criteria.

This overload enables Java interoperability for setting up request matching and response configuration for the generate API.

Return

A building step for further response configuration.

Parameters

name

An optional name for the mock configuration.

block

A Java Consumer that configures the generate request specification.