@Controller public class SwaggerWelcomeWebMvc extends SwaggerWelcomeCommon
Constructor and Description |
---|
SwaggerWelcomeWebMvc(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig,
org.springdoc.core.SpringDocConfigProperties springDocConfigProperties,
org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters)
Instantiates a new Swagger welcome.
|
Modifier and Type | Method and Description |
---|---|
protected String |
buildApiDocUrl() |
protected String |
buildSwaggerConfigUrl() |
protected String |
buildUrl(String contextPath,
String docsUrl) |
protected void |
calculateUiRootPath(StringBuilder... sbUrls) |
Map<String,Object> |
openapiJson(javax.servlet.http.HttpServletRequest request)
Openapi yaml map.
|
org.springframework.http.ResponseEntity<Void> |
redirectToUi(javax.servlet.http.HttpServletRequest request)
Redirect to ui string.
|
calculateOauth2RedirectUrl
public SwaggerWelcomeWebMvc(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters)
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesswaggerUiConfigParameters
- the swagger ui config parameters@GetMapping(value="${springdoc.swagger-ui.path:#{T(org.springdoc.core.Constants).DEFAULT_SWAGGER_UI_PATH}}") public org.springframework.http.ResponseEntity<Void> redirectToUi(javax.servlet.http.HttpServletRequest request)
redirectToUi
in class SwaggerWelcomeCommon
request
- the request@GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}/swagger-config", produces="application/json") @ResponseBody public Map<String,Object> openapiJson(javax.servlet.http.HttpServletRequest request)
openapiJson
in class SwaggerWelcomeCommon
request
- the requestprotected void calculateUiRootPath(StringBuilder... sbUrls)
calculateUiRootPath
in class org.springdoc.ui.AbstractSwaggerWelcome
protected String buildUrl(String contextPath, String docsUrl)
buildUrl
in class org.springdoc.ui.AbstractSwaggerWelcome
protected String buildApiDocUrl()
buildApiDocUrl
in class org.springdoc.ui.AbstractSwaggerWelcome
protected String buildSwaggerConfigUrl()
buildSwaggerConfigUrl
in class org.springdoc.ui.AbstractSwaggerWelcome
Copyright © 2021. All rights reserved.