OperationDsl
DSL for the operation object.
Note that the externalDocs
object is embedded in this DSL.
Functions
Link copied to clipboard
Defines the request body for this operation.
Link copied to clipboard
abstract infix 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
abstract infix 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
abstract infix 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
abstract infix 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.