@Path(value="/swagger-ui")
@Produces(value={"text/html","text/css","image/png"})
public class SwaggerUIResource
extends Object
| Constructor and Description |
|---|
SwaggerUIResource(org.osgi.framework.Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
get(String fileName)
Due to how class loading works, we can't use the standard
io.dropwizard.servlets.assets.AssetServlet so instead we have to serve up our own static
resources |
javax.ws.rs.core.Response |
get(javax.ws.rs.core.UriInfo uriInfo,
String authToken,
String bearerToken) |
@Inject
public SwaggerUIResource(org.osgi.framework.Bundle bundle)
throws IOException
IOException@GET
@Path(value="/{fileName}")
public javax.ws.rs.core.Response get(@PathParam(value="fileName")
String fileName)
io.dropwizard.servlets.assets.AssetServlet so instead we have to serve up our own static
resourcesfileName - The name of the file that should be returned from the swagger-ui directoryjavax.ws.rs.core.Response containing an java.io.InputStream of the
file requestedCopyright © 2021. All rights reserved.