@Path(value="api-docs") public class SwaggerUiService extends Object
| Constructor and Description |
|---|
SwaggerUiService(SwaggerUiResourceLocator locator,
Map<String,String> mediaTypes) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getResource(javax.ws.rs.core.UriInfo uriInfo,
String resourcePath) |
protected String |
replaceUrl(String index,
String replacement)
Replaces the URL inside Swagger UI index.html file.
|
void |
setConfig(SwaggerUiConfig config) |
public SwaggerUiService(SwaggerUiResourceLocator locator, Map<String,String> mediaTypes)
public void setConfig(SwaggerUiConfig config)
@GET
@Path(value="{resource:.*}")
public javax.ws.rs.core.Response getResource(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="resource")
String resourcePath)
protected String replaceUrl(String index, String replacement)
index - index.html file contentreplacement - replacement URLApache CXF