@ControllerEndpoint(id="swagger-ui") public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon
webJarsPrefixUrl| 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,
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties)
Instantiates a new Swagger welcome.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildApiDocUrl() |
protected String |
buildSwaggerConfigUrl() |
protected String |
buildUrlWithContextPath(String swaggerUiUrl) |
protected void |
calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) |
protected void |
calculateUiRootPath(StringBuilder... sbUrls) |
Map<String,Object> |
getSwaggerUiConfig(org.springframework.http.server.reactive.ServerHttpRequest request)
Gets swagger ui config.
|
reactor.core.publisher.Mono<Void> |
redirectToUi(org.springframework.http.server.reactive.ServerHttpRequest request,
org.springframework.http.server.reactive.ServerHttpResponse response)
Redirect to ui mono.
|
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,
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties)
swaggerUiConfig - the swagger ui configspringDocConfigProperties - the spring doc config propertiesswaggerUiConfigParameters - the swagger ui config parameterswebEndpointProperties - the web endpoint propertiesmanagementServerProperties - the management server properties@GetMapping(value="/") public reactor.core.publisher.Mono<Void> redirectToUi(org.springframework.http.server.reactive.ServerHttpRequest request, org.springframework.http.server.reactive.ServerHttpResponse response)
redirectToUi in class SwaggerWelcomeCommonrequest - the requestresponse - the response@GetMapping(value="/swagger-config",
produces="application/json")
@ResponseBody
public Map<String,Object> getSwaggerUiConfig(org.springframework.http.server.reactive.ServerHttpRequest request)
getSwaggerUiConfig in class SwaggerWelcomeCommonrequest - the requestprotected void calculateUiRootPath(StringBuilder... sbUrls)
calculateUiRootPath in class org.springdoc.ui.AbstractSwaggerWelcomeprotected void calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
calculateOauth2RedirectUrl in class org.springdoc.ui.AbstractSwaggerWelcomeprotected String buildApiDocUrl()
buildApiDocUrl in class org.springdoc.ui.AbstractSwaggerWelcomeprotected String buildUrlWithContextPath(String swaggerUiUrl)
buildUrlWithContextPath in class org.springdoc.ui.AbstractSwaggerWelcomeprotected String buildSwaggerConfigUrl()
buildSwaggerConfigUrl in class org.springdoc.ui.AbstractSwaggerWelcomeCopyright © 2024. All rights reserved.