get

fun <P : Any> get(configuration: StubConfiguration, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>
fun <P : Any> get(name: String? = null, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>

Configures an HTTP GET request specification using the provided block and returns a BuildingStep instance for further customization.

Return

A BuildingStep instance initialized with the generated request specification.

Parameters

P

type of the request payload

requestType

The class type of the request body.

block

A lambda used to configure the RequestSpecificationBuilder for the GET request.


Configures HTTP GET request specification using the provided block and returns a BuildingStep for further customization. This method serves as a convenience shortcut.

Return

A BuildingStep instance initialized with the generated request specification.

Parameters

block

A lambda used to configure the RequestSpecificationBuilder for the GET request.


Configures HTTP GET request specification using the provided block and returns a BuildingStep for further customization. This method serves as a convenience shortcut.

Return

A BuildingStep instance initialized with the generated request specification.

Parameters

configuration

The configuration to be used for the request.

block

A lambda used to configure the RequestSpecificationBuilder for the GET request.