OpenApiDocDsl

A small interface exposing the OpenAPI document builder state.

This is used in the OpenAPI and Swagger plugins for providing details in the resulting generated document.

Report a problem

Inheritors

Properties

Link copied to clipboard
abstract var components: Components?

Optional reusable components for the document (schemas, responses, parameters, request bodies, etc.).

Link copied to clipboard

Specification extensions for the document.

Link copied to clipboard
abstract var externalDocs: ExternalDocs?

Optional external documentation for the entire API.

Link copied to clipboard
abstract var info: OpenApiInfo

Required OpenAPI "Info Object" describing the API (title, version, optional description, etc.).

Link copied to clipboard
abstract var openapiVersion: String

OpenAPI specification version to be written into the resulting document.

Functions

Link copied to clipboard
abstract fun security(configure: Security.Builder.() -> Unit)

Configures one or more global security requirements using the Security DSL.

Link copied to clipboard
abstract fun servers(configure: Servers.Builder.() -> Unit)

Configures one or more servers for this API using the Servers DSL.

Link copied to clipboard
abstract fun tag(tag: String)

Registers a tag name at the document level.