Package org.springdoc.webmvc.api
Class MultipleOpenApiActuatorResource
java.lang.Object
org.springdoc.webmvc.api.MultipleOpenApiResource
org.springdoc.webmvc.api.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 Summary
ConstructorsConstructorDescriptionMultipleOpenApiActuatorResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders, SpringDocCustomizers springDocCustomizers) Instantiates a new Multiple open api resource. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]openapiJson(jakarta.servlet.http.HttpServletRequest request, String group, Locale locale) Openapi json string.byte[]openapiYaml(jakarta.servlet.http.HttpServletRequest request, String group, Locale locale) Openapi yaml string.Methods inherited from class org.springdoc.webmvc.api.MultipleOpenApiResource
afterPropertiesSet, getOpenApiResourceOrThrow
-
Constructor Details
-
MultipleOpenApiActuatorResource
public MultipleOpenApiActuatorResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders, SpringDocCustomizers springDocCustomizers) Instantiates a new Multiple open api resource.- Parameters:
groupedOpenApis- the grouped open apisdefaultOpenAPIBuilder- the default open api builderrequestBuilder- the request builderresponseBuilder- the response builderoperationParser- the operation parserspringDocConfigProperties- the spring doc config propertiesspringDocProviders- the spring doc providersspringDocCustomizers- the spring doc customizers
-
-
Method Details
-
openapiJson
@GetMapping(value="/{group}", produces="application/json") public byte[] openapiJson(jakarta.servlet.http.HttpServletRequest request, @PathVariable String group, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException Openapi json string.- Parameters:
request- the requestgroup- the grouplocale- 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 byte[] openapiYaml(jakarta.servlet.http.HttpServletRequest request, @PathVariable String group, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException Openapi yaml string.- Parameters:
request- the requestgroup- the grouplocale- the locale- Returns:
- the string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exception
-