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 Stringprotected Stringprotected StringbuildUrlWithContextPath(String swaggerUiUrl) protected voidcalculateUiRootPath(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
calculateOauth2RedirectUrlMethods 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:
redirectToUiin 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:
openapiJsonin classSwaggerWelcomeCommon- Parameters:
request- the request- Returns:
- the map
-
calculateUiRootPath
- Specified by:
calculateUiRootPathin classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
- Specified by:
buildApiDocUrlin classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
- Specified by:
buildUrlWithContextPathin classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
- Specified by:
buildSwaggerConfigUrlin classorg.springdoc.ui.AbstractSwaggerWelcome
-