RootBuilder
class RootBuilder(context: OpenApiDslContext, infoBuilder: InfoBuilder = InfoBuilder(), paths: PathsBuilder = PathsBuilder(context), securitySchemes: MutableMap<String, SecuritySchemeBuilder> = mutableMapOf()) : RootDsl, InfoDsl, PathsDsl, Builder<OpenAPI>
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())
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
Adds a security scheme to this OpenAPI document with the given string as the name, using the lambda to configure further options.