@RestController public class MultipleOpenApiResource extends Object implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
MultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis,
org.springframework.beans.factory.ObjectFactory<OpenAPIBuilder> defaultOpenAPIBuilder,
AbstractRequestBuilder requestBuilder,
AbstractResponseBuilder responseBuilder,
OperationBuilder operationParser,
org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping requestMappingHandlerMapping,
Optional<ActuatorProvider> servletContextProvider) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
openapiJson(javax.servlet.http.HttpServletRequest request,
String apiDocsUrl,
String group) |
String |
openapiYaml(javax.servlet.http.HttpServletRequest request,
String apiDocsUrl,
String group) |
public MultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIBuilder> defaultOpenAPIBuilder, AbstractRequestBuilder requestBuilder, AbstractResponseBuilder responseBuilder, OperationBuilder operationParser, org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping requestMappingHandlerMapping, Optional<ActuatorProvider> servletContextProvider)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
@GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}/{group}", produces="application/json") public String 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) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
@GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}.yaml/{group}", produces="application/vnd.oai.openapi") public String 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) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2020. All rights reserved.