Class OpenApiActuatorResource


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

      • openapiJson

        @GetMapping(value="/",
                    produces="application/json")
        public String openapiJson​(javax.servlet.http.HttpServletRequest request,
                                  Locale locale)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Openapi json string.
        Parameters:
        request - the request
        locale - the locale
        Returns:
        the string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
      • openapiYaml

        @GetMapping(value="/yaml",
                    produces="application/vnd.oai.openapi")
        public String openapiYaml​(javax.servlet.http.HttpServletRequest request,
                                  Locale locale)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Openapi yaml string.
        Parameters:
        request - the request
        locale - the locale
        Returns:
        the string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
      • getServerUrl

        protected String getServerUrl​(javax.servlet.http.HttpServletRequest request,
                                      String apiDocsUrl)
        Description copied from class: OpenApiResource
        Gets server url.
        Specified by:
        getServerUrl in class OpenApiResource
        Parameters:
        request - the request
        apiDocsUrl - the api docs url
        Returns:
        the server url