Package org.springdoc.webmvc.ui
Class SwaggerWelcomeActuator
- java.lang.Object
-
- org.springdoc.ui.AbstractSwaggerWelcome
-
- org.springdoc.webmvc.ui.SwaggerWelcomeCommon
-
- org.springdoc.webmvc.ui.SwaggerWelcomeActuator
-
@ControllerEndpoint(id="swagger-ui") public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon
The type Swagger actuator welcome.
-
-
Constructor Summary
Constructors Constructor Description SwaggerWelcomeActuator(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties)
Instantiates a new Swagger welcome.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildApiDocUrl()
protected String
buildSwaggerConfigUrl()
protected String
buildUrlWithContextPath(String swaggerUiUrl)
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.-
Methods inherited from class org.springdoc.webmvc.ui.SwaggerWelcomeCommon
calculateOauth2RedirectUrl
-
-
-
-
Constructor Detail
-
SwaggerWelcomeActuator
public SwaggerWelcomeActuator(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties)
Instantiates a new Swagger welcome.- Parameters:
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesswaggerUiConfigParameters
- the swagger ui config parameterswebEndpointProperties
- the web endpoint properties
-
-
Method Detail
-
redirectToUi
@GetMapping("/") public org.springframework.http.ResponseEntity<Void> redirectToUi(javax.servlet.http.HttpServletRequest request)
Redirect to ui string.- Overrides:
redirectToUi
in classSwaggerWelcomeCommon
- Parameters:
request
- the request- Returns:
- the string
-
openapiJson
@GetMapping(value="/swagger-config", produces="application/json") @ResponseBody public Map<String,Object> openapiJson(javax.servlet.http.HttpServletRequest request)
Openapi yaml map.- Overrides:
openapiJson
in classSwaggerWelcomeCommon
- Parameters:
request
- the request- Returns:
- the map
-
calculateUiRootPath
protected void calculateUiRootPath(StringBuilder... sbUrls)
- Specified by:
calculateUiRootPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
protected String buildApiDocUrl()
- Specified by:
buildApiDocUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
protected String buildUrlWithContextPath(String swaggerUiUrl)
- Specified by:
buildUrlWithContextPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
protected String buildSwaggerConfigUrl()
- Specified by:
buildSwaggerConfigUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
-