OperationBuilder
class OperationBuilder(context: OpenApiDslContext) : OperationDsl, Builder<Operation>
Content copied to clipboard
Builder for OperationDsl
Constructors
Functions
Link copied to clipboard
Defines the request body for this operation.
Link copied to clipboard
open infix override fun String.cookieParameter(builder: ParameterDsl.() -> Unit)
Content copied to clipboard
Creates a cookie parameter, with the given string as the name of the cookie.
Link copied to clipboard
open infix override fun String.headerParameter(builder: ParameterDsl.() -> Unit)
Content copied to clipboard
Creates a header parameter, with the given string as the name of the header.
Link copied to clipboard
open infix override fun String.pathParameter(builder: ParameterDsl.() -> Unit)
Content copied to clipboard
Creates a path parameter, with the given string as the name of the corresponding path segment.
Link copied to clipboard
open infix override fun String.queryParameter(builder: ParameterDsl.() -> Unit)
Content copied to clipboard
Creates a query parameter, with the given string as the name of the query parameter key.
Link copied to clipboard
Creates a response for the given response code (passed as an integer value).
Link copied to clipboard
Adds a security requirement object to this operation with the given key.
Adds a security requirement object to this operation with the given key and scopes.