Package org.springdoc.core.providers
Class SpringRepositoryRestResourceProvider
java.lang.Object
org.springdoc.core.providers.SpringRepositoryRestResourceProvider
- All Implemented Interfaces:
RepositoryRestResourceProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringRepositoryRestResourceProvider
extends Object
implements RepositoryRestResourceProvider, org.springframework.context.ApplicationContextAware
The type Spring repository rest resource provider.
- Author:
- bnasslahsen
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpringRepositoryRestResourceProvider(DataRestRouterOperationService dataRestRouterOperationService, com.fasterxml.jackson.databind.ObjectMapper mapper, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Spring repository rest resource provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(io.swagger.v3.oas.models.OpenAPI openAPI) Customize.Gets Base Path Aware controller endpoints.Gets handler methods.getRouterOperations(io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale) Gets router operations.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
REPOSITORY_SCHEMA_CONTROLLER
The constant REPOSITORY_SCHEMA_CONTROLLER.- See Also:
-
-
Constructor Details
-
SpringRepositoryRestResourceProvider
public SpringRepositoryRestResourceProvider(DataRestRouterOperationService dataRestRouterOperationService, com.fasterxml.jackson.databind.ObjectMapper mapper, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Spring repository rest resource provider.- Parameters:
dataRestRouterOperationService- the data rest router operation buildermapper- the mapperspringDocDataRestUtils- the spring doc data rest utils
-
-
Method Details
-
getRouterOperations
public List<RouterOperation> getRouterOperations(io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale) Gets router operations.- Specified by:
getRouterOperationsin interfaceRepositoryRestResourceProvider- Parameters:
openAPI- the open apilocale- the locale- Returns:
- the router operations
-
getBasePathAwareControllerEndpoints
Gets Base Path Aware controller endpoints.- Specified by:
getBasePathAwareControllerEndpointsin interfaceRepositoryRestResourceProvider- Returns:
- the Base Path Aware controller endpoints
-
getHandlerMethods
Gets handler methods.- Specified by:
getHandlerMethodsin interfaceRepositoryRestResourceProvider- Returns:
- the handler methods
-
customize
public void customize(io.swagger.v3.oas.models.OpenAPI openAPI) Customize.- Specified by:
customizein interfaceRepositoryRestResourceProvider- Parameters:
openAPI- the open api
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-