Class MultipleOpenApiActuatorResource

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestControllerEndpoint(id="openapi")
    public class MultipleOpenApiActuatorResource
    extends MultipleOpenApiResource
    The type Multiple open api actuator resource.
    Author:
    bnasslashen
    • Constructor Detail

      • MultipleOpenApiActuatorResource

        public MultipleOpenApiActuatorResource​(List<GroupedOpenApi> groupedOpenApis,
                                               org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder,
                                               AbstractRequestService requestBuilder,
                                               GenericResponseService responseBuilder,
                                               OperationService operationParser,
                                               SpringDocConfigProperties springDocConfigProperties,
                                               SpringDocProviders springDocProviders)
        Instantiates a new Multiple open api resource.
        Parameters:
        groupedOpenApis - the grouped open apis
        defaultOpenAPIBuilder - the default open api builder
        requestBuilder - the request builder
        responseBuilder - the response builder
        operationParser - the operation parser
        springDocConfigProperties - the spring doc config properties
        springDocProviders - the spring doc providers
    • Method Detail

      • openapiJson

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

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