public class SwaggerBundle<T extends io.dropwizard.Configuration & SwaggerBundleConfiguration>
extends java.lang.Object
implements io.dropwizard.ConfiguredBundle<T>
The Swagger Spec endpoint is "/api-docs" and the Swagger UI endpoing is "/swagger".
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROOT_ASSETS_PATH |
| Constructor and Description |
|---|
SwaggerBundle()
Renders a
DefaultSwaggerView |
SwaggerBundle(SwaggerView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
public static final java.lang.String ROOT_ASSETS_PATH
public SwaggerBundle()
DefaultSwaggerViewpublic SwaggerBundle(SwaggerView view)
view - the view to be rendered at "/swagger"public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration & SwaggerBundleConfiguration>public void run(T configuration, io.dropwizard.setup.Environment environment) throws java.lang.Exception
run in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration & SwaggerBundleConfiguration>java.lang.Exception