Class OpenApiActuatorResource

java.lang.Object
io.swagger.v3.core.filter.SpecFilter

@RestControllerEndpoint(id="openapi") public class OpenApiActuatorResource extends OpenApiResource
The type Open api actuator resource.
Author:
bnasslashen
  • Constructor Details

  • Method Details

    • openapiJson

      @GetMapping(value="/", produces="application/json") public reactor.core.publisher.Mono<String> openapiJson(org.springframework.http.server.reactive.ServerHttpRequest serverHttpRequest, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException
      Openapi json mono.
      Parameters:
      serverHttpRequest - the server http request
      locale - the locale
      Returns:
      the mono
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
    • openapiYaml

      @GetMapping(value="/yaml", produces="application/vnd.oai.openapi") public reactor.core.publisher.Mono<String> openapiYaml(org.springframework.http.server.reactive.ServerHttpRequest serverHttpRequest, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException
      Openapi yaml mono.
      Parameters:
      serverHttpRequest - the server http request
      locale - the locale
      Returns:
      the mono
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
    • calculateServerUrl

      protected void calculateServerUrl(org.springframework.http.server.reactive.ServerHttpRequest serverHttpRequest, String apiDocsUrl, Locale locale)
      Description copied from class: OpenApiResource
      Calculate server url.
      Overrides:
      calculateServerUrl in class OpenApiResource
      Parameters:
      serverHttpRequest - the server http request
      apiDocsUrl - the api docs url
      locale - the locale
    • getServerUrl

      protected String getServerUrl(org.springframework.http.server.reactive.ServerHttpRequest serverHttpRequest, String apiDocsUrl)
      Description copied from class: OpenApiResource
      Gets server url.
      Specified by:
      getServerUrl in class OpenApiResource
      Parameters:
      serverHttpRequest - the server http request
      apiDocsUrl - the api docs url
      Returns:
      the server url