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.
-
Field Summary
Fields inherited from class org.springdoc.ui.AbstractSwaggerWelcome
springDocConfigProperties, swaggerUiConfig
-
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWelcomeActuator
(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties) Instantiates a new Swagger welcome. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildApiDocUrl
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) protected void
buildSwaggerConfigUrl
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) protected String
buildUrlWithContextPath
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl) protected void
calculateUiRootPath
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls) openapiJson
(jakarta.servlet.http.HttpServletRequest request) Openapi yaml map.org.springframework.http.ResponseEntity<Void>
redirectToUi
(jakarta.servlet.http.HttpServletRequest request) Redirect to ui string.Methods inherited from class org.springdoc.webmvc.ui.SwaggerWelcomeCommon
calculateOauth2RedirectUrl
Methods inherited from class org.springdoc.ui.AbstractSwaggerWelcome
buildConfigUrl, buildUrl, calculateUiRootCommon, getOauth2RedirectUrl, getSwaggerUiUrl, getUriComponentsBuilder, init
-
Constructor Details
-
SwaggerWelcomeActuator
public SwaggerWelcomeActuator(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties) Instantiates a new Swagger welcome.- Parameters:
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the swagger ui config parameterswebEndpointProperties
- the web endpoint properties
-
-
Method Details
-
redirectToUi
@GetMapping("/") public org.springframework.http.ResponseEntity<Void> redirectToUi(jakarta.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(jakarta.servlet.http.HttpServletRequest request) Openapi yaml map.- Overrides:
openapiJson
in classSwaggerWelcomeCommon
- Parameters:
request
- the request- Returns:
- the map
-
calculateUiRootPath
protected void calculateUiRootPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls) - Specified by:
calculateUiRootPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
protected void buildApiDocUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) - Specified by:
buildApiDocUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
protected String buildUrlWithContextPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl) - Specified by:
buildUrlWithContextPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
protected void buildSwaggerConfigUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) - Specified by:
buildSwaggerConfigUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-