@Controller
public class Swagger2Controller
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_URL |
| Constructor and Description |
|---|
Swagger2Controller(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Json> |
getDocumentation(java.lang.String swaggerGroup,
javax.servlet.http.HttpServletRequest servletRequest) |
public static final java.lang.String DEFAULT_URL
@Autowired
public Swagger2Controller(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer)
@RequestMapping(value="/v2/api-docs",
method=GET,
produces={"application/json","application/hal+json"})
@PropertySourcedMapping(value="${springfox.documentation.swagger.v2.path}",
propertyKey="springfox.documentation.swagger.v2.path")
@ResponseBody
public org.springframework.http.ResponseEntity<Json> getDocumentation(@RequestParam(value="group",required=false)
java.lang.String swaggerGroup,
javax.servlet.http.HttpServletRequest servletRequest)