public static interface CustomConfigurationProviders.SwaggerDetailsBuilder<C extends io.dropwizard.Configuration> extends CustomConfigurationProviders.SwaggerScanningBuilder<C>
Modifier and Type | Method and Description |
---|---|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
disableSwaggerEmbedParameter()
Disables automatic addition of the embed query parameter if embeddable resources are
discovered.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
disableSwaggerJsonExamples()
Disables automatic rendering of Json examples in Swagger
property examples and response examples . |
default CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoContact(java.lang.String name)
Sets the contact of the API.
|
default CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoContact(java.lang.String name,
java.lang.String email)
Sets the contact of the API.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoContact(java.lang.String name,
java.lang.String email,
java.lang.String url)
Sets the contact of the API.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoDescription(java.lang.String description)
Sets the description of the API.
|
default CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoLicense(java.lang.String name)
Sets the license of the API.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoLicense(java.lang.String name,
java.lang.String url)
Sets the license of the API.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoTermsOfServiceUrl(java.lang.String termsOfServiceUrl)
Sets the Terms of Service URL of the API.
|
CustomConfigurationProviders.SwaggerDetailsBuilder<C> |
withSwaggerInfoVersion(java.lang.String version)
Sets the version of the API.
|
addSwaggerResourcePackage, addSwaggerResourcePackageClass
CustomConfigurationProviders.SwaggerDetailsBuilder<C> disableSwaggerEmbedParameter()
CustomConfigurationProviders.SwaggerDetailsBuilder<C> disableSwaggerJsonExamples()
property examples
and response examples
. If disabled, only
String
and Integer
are recognized as special types.CustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoVersion(java.lang.String version)
Note: If no version is given (i.e. this method is not used) 1.0
is used.
version
- the version; not null or emptyjava.lang.NullPointerException
- if version is nulljava.lang.IllegalArgumentException
- if version is emptyCustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoDescription(java.lang.String description)
description
- the description; not null or emptyjava.lang.NullPointerException
- if description is nulljava.lang.IllegalArgumentException
- if description is emptyCustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoTermsOfServiceUrl(java.lang.String termsOfServiceUrl)
termsOfServiceUrl
- the Terms of Service URL; not null or emptyjava.lang.NullPointerException
- if termsOfServiceUrl is nulljava.lang.IllegalArgumentException
- if termsOfServiceUrl is emptydefault CustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoContact(java.lang.String name)
name
- the contact's name; not null or emptyjava.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if name is emptydefault CustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoContact(java.lang.String name, java.lang.String email)
name
- the contact's name; not null or emptyemail
- the contact's email; not null or emptyjava.lang.NullPointerException
- if name or email is nulljava.lang.IllegalArgumentException
- if name or email is emptyCustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoContact(java.lang.String name, java.lang.String email, java.lang.String url)
name
- the contact's name; not null or emptyemail
- the contact's email; not null or emptyurl
- the contact's url; not null or emptyjava.lang.NullPointerException
- if name, email, or url is nulljava.lang.IllegalArgumentException
- if name, email, or url is emptydefault CustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoLicense(java.lang.String name)
name
- the license's name; not null or emptyjava.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if name is emptyCustomConfigurationProviders.SwaggerDetailsBuilder<C> withSwaggerInfoLicense(java.lang.String name, java.lang.String url)
name
- the license's name; not null or emptyurl
- the license's url; not null or emptyjava.lang.NullPointerException
- if name or url is nulljava.lang.IllegalArgumentException
- if name or url is empty