public class SwaggerView
extends io.dropwizard.views.View
Constructor and Description |
---|
SwaggerView(String contextRoot,
String urlPattern,
SwaggerViewConfiguration viewConfiguration,
SwaggerOAuth2Configuration oauth2Configuration) |
Modifier and Type | Method and Description |
---|---|
String |
getContextPath()
Returns the path with with which all requests made by Swagger's UI to
Resources need to be prefixed
|
SwaggerOAuth2Configuration |
getOauth2Configuration() |
boolean |
getShowApiSelector()
Returns whether to display the swagger spec selector
|
boolean |
getShowAuth()
Returns whether to display the authorization input boxes
|
String |
getSwaggerAssetsPath()
Returns the path with which all requests for Swagger's static content
need to be prefixed
|
String |
getTitle()
Returns the title for the browser header
|
String |
getValidatorUrl()
Returns the location of the validator URL or null to disable
|
public SwaggerView(@Nonnull String contextRoot, @Nonnull String urlPattern, @Nonnull SwaggerViewConfiguration viewConfiguration, @Nonnull SwaggerOAuth2Configuration oauth2Configuration)
public String getSwaggerAssetsPath()
public String getContextPath()
@Nullable public String getValidatorUrl()
public boolean getShowAuth()
public boolean getShowApiSelector()
public SwaggerOAuth2Configuration getOauth2Configuration()
SwaggerOAuth2Configuration
containing every properties to
init oauth2Copyright © 2014–2018. All rights reserved.