Package org.springdoc.webmvc.ui
Class SwaggerConfigResource
- java.lang.Object
-
- org.springdoc.webmvc.ui.SwaggerConfigResource
-
@RestController public class SwaggerConfigResource extends Object
The type Swagger config resource.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description SwaggerConfigResource(SwaggerWelcomeCommon swaggerWelcomeCommon)
Instantiates a new Swagger config resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
openapiJson(javax.servlet.http.HttpServletRequest request)
Openapi yaml map.
-
-
-
Constructor Detail
-
SwaggerConfigResource
public SwaggerConfigResource(SwaggerWelcomeCommon swaggerWelcomeCommon)
Instantiates a new Swagger config resource.- Parameters:
swaggerWelcomeCommon
- the swagger welcome common
-
-
Method Detail
-
openapiJson
@GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}/swagger-config", produces="application/json") public Map<String,Object> openapiJson(javax.servlet.http.HttpServletRequest request)
Openapi yaml map.- Parameters:
request
- the request- Returns:
- the map
-
-