@Controller
@ConditionalOnClass(name="org.springframework.web.reactive.BindingContext")
public class Swagger2ControllerWebFlux
extends java.lang.Object
| Constructor and Description |
|---|
Swagger2ControllerWebFlux(springfox.documentation.spring.web.DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
springfox.documentation.spring.web.json.JsonSerializer jsonSerializer) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> |
getDocumentation(java.lang.String swaggerGroup,
org.springframework.http.server.reactive.ServerHttpRequest request) |
@Autowired
public Swagger2ControllerWebFlux(springfox.documentation.spring.web.DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
springfox.documentation.spring.web.json.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<springfox.documentation.spring.web.json.Json> getDocumentation(@RequestParam(value="group",required=false)
java.lang.String swaggerGroup,
org.springframework.http.server.reactive.ServerHttpRequest request)