Builder

class Builder(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>)(source)

DSL builder for assembling a list of Parameters used by an operation.

Report a problem

Constructors

Link copied to clipboard
constructor(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>)

Properties

Link copied to clipboard

The collected list of parameters.

Functions

Link copied to clipboard
fun cookie(name: String, configure: Parameter.Builder.() -> Unit = {})

Adds a cookie parameter with the given name.

Link copied to clipboard
fun header(name: String, configure: Parameter.Builder.() -> Unit = {})

Adds a header parameter with the given name.

Link copied to clipboard
fun parameter(name: String, configure: Parameter.Builder.() -> Unit)

Adds a generic Parameter via the provided configure block.

Link copied to clipboard
fun path(name: String, configure: Parameter.Builder.() -> Unit = {})

Adds a required path parameter with the given name.

Link copied to clipboard
fun query(name: String, configure: Parameter.Builder.() -> Unit = {})

Adds a query parameter with the given name.