@Configuration
@ConditionalOnClass(name={"com.holonplatform.jaxrs.spring.boot.resteasy.ResteasyConfig","io.swagger.models.Swagger"})
@ConditionalOnBean(type="com.holonplatform.jaxrs.spring.boot.resteasy.ResteasyConfig")
@AutoConfigureOrder(value=2147482647)
@AutoConfigureAfter(name="com.holonplatform.jaxrs.spring.boot.resteasy.ResteasyAutoConfiguration")
@EnableConfigurationProperties(value=SwaggerConfigurationProperties.class)
public class ResteasySwaggerV2AutoConfiguration
extends com.holonplatform.jaxrs.swagger.v2.internal.spring.AbstractSwaggerV2AutoConfiguration<ResteasyConfig>
This class configures API listing endpoints according to one or more API configuration definitions. An API configuration endpoint can be decalred and configured using either:
SwaggerConfig type beans (using for example the BeanConfig implementation). The
ApiConfiguration annotation can be used on each API configuration bean to setup the API listing endpoint, for
example to declare the JAX-RS endpoint path. When more then one SwaggerConfig type bean is declared, the
ApiConfiguration.contextId() attribute should be used to declare a different API context id for each
configuration.SwaggerConfig type bean is defined, the SwaggerConfigurationProperties application
properties can be used to configure the API definition and the API listing endpoints. To declare more than one API
definition subset, a set of API group can be declared. Each group id will be used as API context id.
By default, the ApiDefaults.DEFAULT_API_ENDPOINT_PATH path is used as JAX-RS API listing endpoint path if not
configured otherwise.
A Holon ResteasyConfig type bean must be available in context to enable the API listing endpoints
auto-configuration.
| Constructor and Description |
|---|
ResteasySwaggerV2AutoConfiguration(SwaggerConfigurationProperties configurationProperties,
org.springframework.beans.factory.ObjectProvider<io.swagger.config.SwaggerConfig> openAPIConfigurations) |
| Modifier and Type | Method and Description |
|---|---|
ResteasyConfigCustomizer |
resteasySwaggerV3ResourceConfigCustomizer() |
getContextIdByPath, jaxrsApiEndpointsDefinitionsV2InitializerApplicationListenerOnContextRefreshpublic ResteasySwaggerV2AutoConfiguration(SwaggerConfigurationProperties configurationProperties, org.springframework.beans.factory.ObjectProvider<io.swagger.config.SwaggerConfig> openAPIConfigurations)
@Bean public ResteasyConfigCustomizer resteasySwaggerV3ResourceConfigCustomizer()
Copyright © 2019 The Holon Platform. All rights reserved.