Class Swagger2ControllerWebMvc
- java.lang.Object
-
- springfox.documentation.swagger2.web.Swagger2ControllerWebMvc
-
@RestController @ConditionalOnWebApplication(type=SERVLET) @RequestMapping("${springfox.documentation.swagger.v2.path:/v2/api-docs}") @Conditional(OnServletBasedWebApplication.class) @Order(-2147483648) public class Swagger2ControllerWebMvc extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SWAGGER2_SPECIFICATION_PATH
-
Constructor Summary
Constructors Constructor Description Swagger2ControllerWebMvc(DocumentationCache documentationCache, ServiceModelToSwagger2Mapper mapper, JsonSerializer jsonSerializer, org.springframework.plugin.core.PluginRegistry<WebMvcSwaggerTransformationFilter,DocumentationType> transformations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Json>
getDocumentation(java.lang.String swaggerGroup, javax.servlet.http.HttpServletRequest servletRequest)
-
-
-
Field Detail
-
SWAGGER2_SPECIFICATION_PATH
public static final java.lang.String SWAGGER2_SPECIFICATION_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Swagger2ControllerWebMvc
@Autowired public Swagger2ControllerWebMvc(DocumentationCache documentationCache, ServiceModelToSwagger2Mapper mapper, JsonSerializer jsonSerializer, @Qualifier("webMvcSwaggerTransformationFilterRegistry") org.springframework.plugin.core.PluginRegistry<WebMvcSwaggerTransformationFilter,DocumentationType> transformations)
-
-
Method Detail
-
getDocumentation
@RequestMapping(method=GET, produces={"application/json","application/hal+json"}) public org.springframework.http.ResponseEntity<Json> getDocumentation(@RequestParam(value="group",required=false) java.lang.String swaggerGroup, javax.servlet.http.HttpServletRequest servletRequest)
-
-