@RestController public class MultipleOpenApiWebMvcResource extends MultipleOpenApiResource
| Constructor and Description |
|---|
MultipleOpenApiWebMvcResource(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 apiDocsUrl,
String group,
Locale locale)
Openapi json string.
|
byte[] |
openapiYaml(javax.servlet.http.HttpServletRequest request,
String apiDocsUrl,
String group,
Locale locale)
Openapi yaml string.
|
afterPropertiesSet, getOpenApiResourceOrThrowpublic MultipleOpenApiWebMvcResource(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="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}/{group}",
produces="application/json")
public byte[] openapiJson(javax.servlet.http.HttpServletRequest request,
@Value(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}")
String apiDocsUrl,
@PathVariable
String group,
Locale locale)
throws com.fasterxml.jackson.core.JsonProcessingException
request - the requestapiDocsUrl - the api docs urlgroup - the grouplocale - the localecom.fasterxml.jackson.core.JsonProcessingException - the json processing exception@GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}.yaml/{group}",
produces="application/vnd.oai.openapi")
public byte[] openapiYaml(javax.servlet.http.HttpServletRequest request,
@Value(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}.yaml")
String apiDocsUrl,
@PathVariable
String group,
Locale locale)
throws com.fasterxml.jackson.core.JsonProcessingException
request - the requestapiDocsUrl - the api docs urlgroup - the grouplocale - the localecom.fasterxml.jackson.core.JsonProcessingException - the json processing exceptionCopyright © 2024. All rights reserved.