@Controller
public class Swagger1Controller
extends java.lang.Object
Constructor and Description |
---|
Swagger1Controller(DocumentationCache documentationCache,
ServiceModelToSwaggerMapper mapper,
JsonSerializer jsonSerializer) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Json> |
getApiListing(java.lang.String swaggerGroup,
java.lang.String apiDeclaration) |
org.springframework.http.ResponseEntity<Json> |
getResourceListing(java.lang.String swaggerGroup) |
@Autowired public Swagger1Controller(DocumentationCache documentationCache, ServiceModelToSwaggerMapper mapper, JsonSerializer jsonSerializer)
@RequestMapping(value="/api-docs", method=GET) @PropertySourcedMapping(value="${springfox.documentation.swagger.v1.path}", propertyKey="springfox.documentation.swagger.v1.path") @ResponseBody public org.springframework.http.ResponseEntity<Json> getResourceListing(@RequestParam(value="group",required=false) java.lang.String swaggerGroup)
@RequestMapping(value="/api-docs/{swaggerGroup}/{apiDeclaration}", method=GET) @PropertySourcedMapping(value="${springfox.documentation.swagger.v1.path}/{swaggerGroup}/{apiDeclaration}", propertyKey="springfox.documentation.swagger.v1.path") @ResponseBody public org.springframework.http.ResponseEntity<Json> getApiListing(@PathVariable java.lang.String swaggerGroup, @PathVariable java.lang.String apiDeclaration)