Swagger2Controller
(org.springframework.core.env.Environment environment,
DocumentationCache
documentationCache,
ServiceModelToSwagger2Mapper
mapper,
JsonSerializer
jsonSerializer)
org.springframework.http.ResponseEntity<
Json
>
getDocumentation
(java.lang.String swaggerGroup,
javax.servlet.http.HttpServletRequest servletRequest)
Swagger2Controller
@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)