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
apiDocsUrl, contextPath, springDocConfigProperties, swaggerConfigUrl, swaggerUiConfig, swaggerUiConfigParameters
-
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWelcomeActuator
(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties) Instantiates a new Swagger welcome. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
protected String
buildUrlWithContextPath
(String swaggerUiUrl) protected void
calculateUiRootPath
(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.springdoc.core.properties.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 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
- Specified by:
calculateUiRootPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
- Specified by:
buildApiDocUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
- Specified by:
buildUrlWithContextPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
- Specified by:
buildSwaggerConfigUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-