@ControllerEndpoint(id="swagger-ui") public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon
Constructor and 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.
|
Modifier and Type | Method and 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.
|
calculateOauth2RedirectUrl
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)
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesswaggerUiConfigParameters
- the swagger ui config parameterswebEndpointProperties
- the web endpoint properties@GetMapping(value="/") public org.springframework.http.ResponseEntity<Void> redirectToUi(javax.servlet.http.HttpServletRequest request)
redirectToUi
in class SwaggerWelcomeCommon
request
- the request@GetMapping(value="/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 buildApiDocUrl()
buildApiDocUrl
in class org.springdoc.ui.AbstractSwaggerWelcome
protected String buildUrlWithContextPath(String swaggerUiUrl)
buildUrlWithContextPath
in class org.springdoc.ui.AbstractSwaggerWelcome
protected String buildSwaggerConfigUrl()
buildSwaggerConfigUrl
in class org.springdoc.ui.AbstractSwaggerWelcome
Copyright © 2024. All rights reserved.