@ConfigurationProperties(prefix="holon.swagger") public class SwaggerConfigurationProperties extends Object implements ApiConfigurationProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
SwaggerConfigurationProperties.ApiGroupConfiguration
API group configuration.
|
static class |
SwaggerConfigurationProperties.Contact
API contact configuration.
|
static class |
SwaggerConfigurationProperties.ExternalDocs
API external docs configuration.
|
static class |
SwaggerConfigurationProperties.License
API license configuration.
|
static class |
SwaggerConfigurationProperties.Security
API security configuration.
|
static class |
SwaggerConfigurationProperties.Server
API server configuration.
|
static class |
SwaggerConfigurationProperties.Version
API version specific configuration.
|
| Constructor and Description |
|---|
SwaggerConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
List<SwaggerConfigurationProperties.ApiGroupConfiguration> |
getApiGroups() |
SwaggerConfigurationProperties.Contact |
getContact() |
String |
getContactEmail()
Get the API contact email.
|
String |
getContactName()
Get the API contact name.
|
String |
getContactUrl()
Get the API contact URL.
|
String |
getContextId()
Get the API context id.
|
String |
getDescription()
Get the API description.
|
SwaggerConfigurationProperties.ExternalDocs |
getExternalDocs() |
String |
getExternalDocsDescription()
Get the external documentation description.
|
String |
getExternalDocsUrl()
Get the external documentation URL.
|
String |
getHost() |
List<String> |
getIgnoredRoutes()
Get the API operation routes to ignore for API definition generation.
|
SwaggerConfigurationProperties.License |
getLicense() |
String |
getLicenseName()
Get the API license name.
|
String |
getLicenseUrl()
Get the API license URL.
|
String |
getPath()
Get the API listing endpoint path.
|
String |
getResourcePackage()
Get the package names to use to filter the API resource classes.
|
JaxrsScannerType |
getScannerType()
Get the API resource classes scanner type.
|
String[] |
getSchemes() |
List<SwaggerConfigurationProperties.Security> |
getSecurity() |
List<Map<String,List<String>>> |
getSecurityRequirements()
Get the API security requirements.
|
SwaggerConfigurationProperties.Server |
getServer() |
String |
getServerDescription()
Get the API server description.
|
String |
getServerUrl()
Get the API server URL.
|
String |
getTermsOfServiceUrl()
Get the API terms of service URL.
|
String |
getTitle()
Get the API title.
|
ApiEndpointType |
getType()
Get the API listing endpoint type.
|
SwaggerConfigurationProperties.Version |
getV2()
Get the Swagger V2 specific configuration.
|
SwaggerConfigurationProperties.Version |
getV3()
Get the Swagger/OpenAPI V3 specific configuration.
|
String |
getVersion()
Get the API version.
|
boolean |
isEnabled() |
boolean |
isGroupConfiguration()
Get whether is a API group configuration.
|
boolean |
isIncludeAll()
Get whether to include all API resources or to include only the resources with a suitable API definition
annotation.
|
boolean |
isPrettyPrint()
Get whether the API output should be formatted.
|
void |
setContact(SwaggerConfigurationProperties.Contact contact) |
void |
setContextId(String contextId) |
void |
setDescription(String description) |
void |
setEnabled(boolean enabled) |
void |
setExternalDocs(SwaggerConfigurationProperties.ExternalDocs externalDocs) |
void |
setHost(String host) |
void |
setIgnoredRoutes(List<String> ignoredRoutes) |
void |
setIncludeAll(boolean includeAll) |
void |
setLicense(SwaggerConfigurationProperties.License license) |
void |
setLicenseUrl(String licenseUrl) |
void |
setPath(String path) |
void |
setPrettyPrint(boolean prettyPrint) |
void |
setResourcePackage(String resourcePackage) |
void |
setScannerType(JaxrsScannerType scannerType) |
void |
setSchemes(String[] schemes) |
void |
setSecurity(List<SwaggerConfigurationProperties.Security> security) |
void |
setServer(SwaggerConfigurationProperties.Server server) |
void |
setTermsOfServiceUrl(String termsOfServiceUrl) |
void |
setTitle(String title) |
void |
setType(ApiEndpointType type) |
void |
setV2(SwaggerConfigurationProperties.Version v2) |
void |
setV3(SwaggerConfigurationProperties.Version v3) |
void |
setVersion(String version) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResourcePackagespublic boolean isGroupConfiguration()
ApiConfigurationPropertiesisGroupConfiguration in interface ApiConfigurationPropertiespublic boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean isIncludeAll()
ApiConfigurationProperties
If false: For Swagger V2, only the io.swagger.annotations.ApiOperation annotated
resource methods will be incuded. For Swagger/OpenAPI V3, only the
io.swagger.v3.oas.annotations.Operation annotated resource methods will be incuded.
isIncludeAll in interface ApiConfigurationPropertiespublic void setIncludeAll(boolean includeAll)
public List<String> getIgnoredRoutes()
ApiConfigurationPropertiesgetIgnoredRoutes in interface ApiConfigurationPropertiespublic String getResourcePackage()
ApiConfigurationPropertiesTo specify more than one package name, a comma separator con be used
getResourcePackage in interface ApiConfigurationPropertiespublic void setResourcePackage(String resourcePackage)
public String getPath()
ApiConfigurationPropertiesgetPath in interface ApiConfigurationPropertiespublic void setPath(String path)
public SwaggerConfigurationProperties.Version getV2()
ApiConfigurationPropertiesgetV2 in interface ApiConfigurationPropertiespublic void setV2(SwaggerConfigurationProperties.Version v2)
public SwaggerConfigurationProperties.Version getV3()
ApiConfigurationPropertiesgetV3 in interface ApiConfigurationPropertiespublic void setV3(SwaggerConfigurationProperties.Version v3)
public ApiEndpointType getType()
ApiConfigurationPropertiesgetType in interface ApiConfigurationPropertiespublic void setType(ApiEndpointType type)
public JaxrsScannerType getScannerType()
ApiConfigurationPropertiesgetScannerType in interface ApiConfigurationPropertiespublic void setScannerType(JaxrsScannerType scannerType)
public String getContextId()
ApiConfigurationPropertiesgetContextId in interface ApiConfigurationPropertiespublic void setContextId(String contextId)
public String getTitle()
ApiConfigurationPropertiesgetTitle in interface ApiConfigurationPropertiespublic void setTitle(String title)
public String getVersion()
ApiConfigurationPropertiesgetVersion in interface ApiConfigurationPropertiespublic void setVersion(String version)
public String getDescription()
ApiConfigurationPropertiesgetDescription in interface ApiConfigurationPropertiespublic void setDescription(String description)
public String getTermsOfServiceUrl()
ApiConfigurationPropertiesgetTermsOfServiceUrl in interface ApiConfigurationPropertiespublic void setTermsOfServiceUrl(String termsOfServiceUrl)
public SwaggerConfigurationProperties.Contact getContact()
public void setContact(SwaggerConfigurationProperties.Contact contact)
public SwaggerConfigurationProperties.License getLicense()
public void setLicense(SwaggerConfigurationProperties.License license)
public void setLicenseUrl(String licenseUrl)
public SwaggerConfigurationProperties.ExternalDocs getExternalDocs()
public void setExternalDocs(SwaggerConfigurationProperties.ExternalDocs externalDocs)
public String getContactName()
ApiConfigurationPropertiesgetContactName in interface ApiConfigurationPropertiespublic String getContactEmail()
ApiConfigurationPropertiesgetContactEmail in interface ApiConfigurationPropertiespublic String getContactUrl()
ApiConfigurationPropertiesgetContactUrl in interface ApiConfigurationPropertiespublic String getLicenseName()
ApiConfigurationPropertiesgetLicenseName in interface ApiConfigurationPropertiespublic String getLicenseUrl()
ApiConfigurationPropertiesgetLicenseUrl in interface ApiConfigurationPropertiespublic String getExternalDocsUrl()
ApiConfigurationPropertiesgetExternalDocsUrl in interface ApiConfigurationPropertiespublic String getExternalDocsDescription()
ApiConfigurationPropertiesgetExternalDocsDescription in interface ApiConfigurationPropertiespublic String[] getSchemes()
public void setSchemes(String[] schemes)
public String getHost()
public void setHost(String host)
public SwaggerConfigurationProperties.Server getServer()
public void setServer(SwaggerConfigurationProperties.Server server)
public String getServerUrl()
ApiConfigurationPropertiesgetServerUrl in interface ApiConfigurationPropertiespublic String getServerDescription()
ApiConfigurationPropertiesgetServerDescription in interface ApiConfigurationPropertiespublic List<SwaggerConfigurationProperties.Security> getSecurity()
public void setSecurity(List<SwaggerConfigurationProperties.Security> security)
public List<Map<String,List<String>>> getSecurityRequirements()
ApiConfigurationPropertiesgetSecurityRequirements in interface ApiConfigurationPropertiespublic boolean isPrettyPrint()
ApiConfigurationPropertiesisPrettyPrint in interface ApiConfigurationPropertiespublic void setPrettyPrint(boolean prettyPrint)
public List<SwaggerConfigurationProperties.ApiGroupConfiguration> getApiGroups()
Copyright © 2019 The Holon Platform. All rights reserved.