Package org.springdoc.webmvc.api
Class MultipleOpenApiWebMvcResource
- java.lang.Object
-
- org.springdoc.webmvc.api.MultipleOpenApiResource
-
- org.springdoc.webmvc.api.MultipleOpenApiWebMvcResource
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RestController public class MultipleOpenApiWebMvcResource extends MultipleOpenApiResource
The type Multiple open api resource.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description MultipleOpenApiWebMvcResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping requestMappingHandlerMapping, Optional<ActuatorProvider> actuatorProvider, SpringDocConfigProperties springDocConfigProperties, Optional<SecurityOAuth2Provider> springSecurityOAuth2Provider, Optional<RouterFunctionProvider> routerFunctionProvider, Optional<RepositoryRestResourceProvider> repositoryRestResourceProvider)Instantiates a new Multiple open api resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringopenapiJson(javax.servlet.http.HttpServletRequest request, String apiDocsUrl, String group, Locale locale)Openapi json string.StringopenapiYaml(javax.servlet.http.HttpServletRequest request, String apiDocsUrl, String group, Locale locale)Openapi yaml string.-
Methods inherited from class org.springdoc.webmvc.api.MultipleOpenApiResource
afterPropertiesSet, getOpenApiResourceOrThrow
-
-
-
-
Constructor Detail
-
MultipleOpenApiWebMvcResource
public MultipleOpenApiWebMvcResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping requestMappingHandlerMapping, Optional<ActuatorProvider> actuatorProvider, SpringDocConfigProperties springDocConfigProperties, Optional<SecurityOAuth2Provider> springSecurityOAuth2Provider, Optional<RouterFunctionProvider> routerFunctionProvider, Optional<RepositoryRestResourceProvider> repositoryRestResourceProvider)
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 parserrequestMappingHandlerMapping- the request mapping handler mappingactuatorProvider- the actuator providerspringDocConfigProperties- the spring doc config propertiesspringSecurityOAuth2Provider- the spring security o auth 2 providerrouterFunctionProvider- the router function providerrepositoryRestResourceProvider- the repository rest resource provider
-
-
Method Detail
-
openapiJson
@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("${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.JsonProcessingExceptionOpenapi json string.- Parameters:
request- the requestapiDocsUrl- the api docs urlgroup- the grouplocale- the locale- Returns:
- the string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exception
-
openapiYaml
@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("${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.JsonProcessingExceptionOpenapi yaml string.- Parameters:
request- the requestapiDocsUrl- the api docs urlgroup- the grouplocale- the locale- Returns:
- the string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exception
-
-