put
fun <P : Any> put(name: String? = null, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>(source)
Defines a stub for an HTTP PUT request with the specified request type and configuration block.
Return
A BuildingStep for further customization of the stub.
Parameters
name
Optional name for the stub.
request Type
The class of the request payload.
block
Lambda to configure the request specification.
fun <P : Any> put(configuration: StubConfiguration, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>(source)
Defines a stub for an HTTP PUT request with the specified configuration and request type.
Return
A BuildingStep for further stub setup.
Parameters
configuration
The stub configuration for this request.
request Type
The class representing the request payload type.
block
Lambda to configure the request specification.
Defines a stub for an HTTP PUT request with a string request body.
Return
A building step for further stub customization.
Parameters
block
Lambda to configure the request specification builder.