Class SpincastOpenApiBottomUpPluginConfigDefault
java.lang.Object
org.spincast.plugins.openapi.bottomup.config.SpincastOpenApiBottomUpPluginConfigDefault
- All Implemented Interfaces:
SpincastOpenApiBottomUpPluginConfig
public class SpincastOpenApiBottomUpPluginConfigDefault
extends Object
implements SpincastOpenApiBottomUpPluginConfig
-
Constructor Details
-
SpincastOpenApiBottomUpPluginConfigDefault
public SpincastOpenApiBottomUpPluginConfigDefault()
-
-
Method Details
-
getDefaultConsumesContentTypes
Description copied from interface:SpincastOpenApiBottomUpPluginConfig
The default consumes content types.Returning
null
or an empty array will result in a single "*/*" content type.By default, returns "
application/json
".- Specified by:
getDefaultConsumesContentTypes
in interfaceSpincastOpenApiBottomUpPluginConfig
-
getDefaultProducesContentTypes
Description copied from interface:SpincastOpenApiBottomUpPluginConfig
The default produces content types.Returning
null
or an empty array will result in a single "*/*" content type.By default, returns "
application/json
".- Specified by:
getDefaultProducesContentTypes
in interfaceSpincastOpenApiBottomUpPluginConfig
-
isDisableAutoSpecs
public boolean isDisableAutoSpecs()Description copied from interface:SpincastOpenApiBottomUpPluginConfig
If this returnstrue
no automatic specs are going to be generated from the main routes.It is useful to disable such auto specs when you want to specify the full
OpenAPI
object usingSpincastOpenApiManager.setOpenApiBase(OpenAPI)
.- Specified by:
isDisableAutoSpecs
in interfaceSpincastOpenApiBottomUpPluginConfig
-