public class SwaggerBundle
extends io.dropwizard.assets.AssetsBundle
| Constructor and Description |
|---|
SwaggerBundle() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(io.dropwizard.Configuration configuration)
Call this method from
Application.run(io.dropwizard.Configuration, io.dropwizard.setup.Environment)
passing the Configuration so that Swagger can be properly configured to run on Amazon. |
static void |
configure(io.dropwizard.Configuration configuration,
String host)
Call this method directly if not running locally or in AWS and pass in the host to which Swagger API
should be bound to.
|
void |
run(io.dropwizard.setup.Environment environment) |
public static final String PATH
public static void configure(io.dropwizard.Configuration configuration)
throws IOException
Application.run(io.dropwizard.Configuration, io.dropwizard.setup.Environment)
passing the Configuration so that Swagger can be properly configured to run on Amazon.
It is recommended that this method is called even when running locally -which has no side effect- so that this application
can be deployed to an EC2 instance without any changes.IOExceptionpublic static void configure(io.dropwizard.Configuration configuration,
String host)
public void run(io.dropwizard.setup.Environment environment)
run in interface io.dropwizard.Bundlerun in class io.dropwizard.assets.AssetsBundleCopyright © 2014. All rights reserved.