RootBuilder
class RootBuilder( context: OpenApiDslContext, infoBuilder: InfoBuilder = InfoBuilder(), paths: PathsBuilder = PathsBuilder(context), securitySchemes: MutableMap<String, SecuritySchemeBuilder> = mutableMapOf()) : RootDsl, InfoDsl, PathsDsl, Builder<OpenAPI>
Content copied to clipboard
Builder for the RootDsl.
Constructors
Link copied to clipboard
fun RootBuilder( context: OpenApiDslContext, infoBuilder: InfoBuilder = InfoBuilder(), paths: PathsBuilder = PathsBuilder(context), securitySchemes: MutableMap<String, SecuritySchemeBuilder> = mutableMapOf())
Content copied to clipboard
Functions
Link copied to clipboard
Adds a path with the given string and creates a "DELETE" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "GET" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "HEAD" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "OPTIONS" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "PATCH" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "POST" operation on it.
Link copied to clipboard
Adds a path with the given string and creates a "PUT" operation on it.
Link copied to clipboard
open infix override fun String.securityScheme(scheme: SecuritySchemeDsl.() -> Unit)
Content copied to clipboard
Adds a security scheme to this OpenAPI document with the given string as the name, using the lambda to configure further options.
Properties
Link copied to clipboard
Link copied to clipboard
An SPDX license identifier for the API.
Link copied to clipboard