@RestControllerEndpoint(id="openapi") public class MultipleOpenApiActuatorResource extends MultipleOpenApiResource
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
openapiJson(javax.servlet.http.HttpServletRequest request,
String group,
Locale locale)
Openapi json string.
|
byte[] |
openapiYaml(javax.servlet.http.HttpServletRequest request,
String group,
Locale locale)
Openapi yaml string.
|
afterPropertiesSet, getOpenApiResourceOrThrowpublic MultipleOpenApiActuatorResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders, SpringDocCustomizers springDocCustomizers)
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@GetMapping(value="/{group}",
produces="application/json")
public byte[] openapiJson(javax.servlet.http.HttpServletRequest request,
@PathVariable
String group,
Locale locale)
throws com.fasterxml.jackson.core.JsonProcessingException
request - the requestgroup - the grouplocale - the localecom.fasterxml.jackson.core.JsonProcessingException - the json processing exception@GetMapping(value="/{group}/yaml",
produces="application/vnd.oai.openapi")
public byte[] openapiYaml(javax.servlet.http.HttpServletRequest request,
@PathVariable
String group,
Locale locale)
throws com.fasterxml.jackson.core.JsonProcessingException
request - the requestgroup - the grouplocale - the localecom.fasterxml.jackson.core.JsonProcessingException - the json processing exceptionCopyright © 2024. All rights reserved.