Package-level declarations

Types

Link copied to clipboard
@ConditionalOnClass(name = ["me.ahoo.wow.openapi.RouterSpecs"])
@ConditionalOnProperty(value = ["wow.openapi.enabled"], matchIfMissing = true, havingValue = "true")
annotation class ConditionalOnOpenAPIEnabled
Link copied to clipboard
@AutoConfiguration
@ConditionalOnClass(name = ["me.ahoo.wow.openapi.RouterSpecs"])
@EnableConfigurationProperties(value = [OpenAPIProperties::class])
class OpenAPIAutoConfiguration
Link copied to clipboard
fun interface OpenApiDocumentFilter

Changes the OpenAPI document right after WowOpenApiCustomizer has merged Wow's routes into it, so it sees those routes whatever order springdoc runs its customizers in. Declare one as a bean; several run in their order (org.springframework.core.Ordered or org.springframework.core.annotation.Order).

Link copied to clipboard
@ConfigurationProperties(prefix = "wow.openapi")
class OpenAPIProperties(var enabled: Boolean = true) : EnabledCapable
Link copied to clipboard
class WowOpenApiCustomizer(routerSpecs: RouterSpecs, documentFilters: List<OpenApiDocumentFilter>) : OpenApiCustomizer

Merges Wow's routes into the OpenAPI document, then applies the documentFilters in the order given.

Properties

Link copied to clipboard
const val ENABLED_KEY: String