Package org.springdoc.core.providers
Class SpringRepositoryRestResourceProvider
java.lang.Object
org.springdoc.core.providers.SpringRepositoryRestResourceProvider
- All Implemented Interfaces:
RepositoryRestResourceProvider
public class SpringRepositoryRestResourceProvider
extends Object
implements RepositoryRestResourceProvider
The type Spring repository rest resource provider.
- Author:
- bnasslahsen
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpringRepositoryRestResourceProvider
(org.springframework.data.rest.core.mapping.ResourceMappings mappings, org.springframework.data.repository.support.Repositories repositories, org.springframework.data.rest.webmvc.mapping.Associations associations, org.springframework.context.ApplicationContext applicationContext, DataRestRouterOperationService dataRestRouterOperationService, org.springframework.data.mapping.context.PersistentEntities persistentEntities, com.fasterxml.jackson.databind.ObjectMapper mapper, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Spring repository rest resource provider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(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.
-
Field Details
-
REPOSITORY_SCHEMA_CONTROLLER
The constant REPOSITORY_SCHEMA_CONTROLLER.- See Also:
-
-
Constructor Details
-
SpringRepositoryRestResourceProvider
public SpringRepositoryRestResourceProvider(org.springframework.data.rest.core.mapping.ResourceMappings mappings, org.springframework.data.repository.support.Repositories repositories, org.springframework.data.rest.webmvc.mapping.Associations associations, org.springframework.context.ApplicationContext applicationContext, DataRestRouterOperationService dataRestRouterOperationService, org.springframework.data.mapping.context.PersistentEntities persistentEntities, com.fasterxml.jackson.databind.ObjectMapper mapper, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Spring repository rest resource provider.- Parameters:
mappings
- the mappingsrepositories
- the repositoriesassociations
- the associationsapplicationContext
- the application contextdataRestRouterOperationService
- the data rest router operation builderpersistentEntities
- the persistent entitiesmapper
- 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:
getRouterOperations
in interfaceRepositoryRestResourceProvider
- Parameters:
openAPI
- the open apilocale
- the locale- Returns:
- the router operations
-
getBasePathAwareControllerEndpoints
Gets Base Path Aware controller endpoints.- Specified by:
getBasePathAwareControllerEndpoints
in interfaceRepositoryRestResourceProvider
- Returns:
- the Base Path Aware controller endpoints
-
getHandlerMethods
Gets handler methods.- Specified by:
getHandlerMethods
in interfaceRepositoryRestResourceProvider
- Returns:
- the handler methods
-
customize
public void customize(io.swagger.v3.oas.models.OpenAPI openAPI) Customize.- Specified by:
customize
in interfaceRepositoryRestResourceProvider
- Parameters:
openAPI
- the open api
-