Package org.springdoc.data.rest
Class SpringRepositoryRestResourceProvider
- java.lang.Object
-
- org.springdoc.data.rest.SpringRepositoryRestResourceProvider
-
- All Implemented Interfaces:
org.springdoc.core.RepositoryRestResourceProvider
public class SpringRepositoryRestResourceProvider extends Object implements org.springdoc.core.RepositoryRestResourceProvider
The type Spring repository rest resource provider.- Author:
- bnasslahsen
-
-
Field Summary
Fields Modifier and Type Field Description static String
REPOSITORY_SCHEMA_CONTROLLER
The constant REPOSITORY_SCHEMA_CONTROLLER.
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(io.swagger.v3.oas.models.OpenAPI openAPI)
Customize.Map
getHandlerMethods()
Gets handler methods.Map<String,Object>
getRepositoryRestControllerEndpoints()
Gets repository rest controller endpoints.List<org.springdoc.core.fn.RouterOperation>
getRouterOperations(io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale)
Gets router operations.
-
-
-
Field Detail
-
REPOSITORY_SCHEMA_CONTROLLER
public static final String REPOSITORY_SCHEMA_CONTROLLER
The constant REPOSITORY_SCHEMA_CONTROLLER.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 mapper
-
-
Method Detail
-
getRouterOperations
public List<org.springdoc.core.fn.RouterOperation> getRouterOperations(io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale)
Gets router operations.- Specified by:
getRouterOperations
in interfaceorg.springdoc.core.RepositoryRestResourceProvider
- Parameters:
openAPI
- the open apilocale
- the locale- Returns:
- the router operations
-
getRepositoryRestControllerEndpoints
public Map<String,Object> getRepositoryRestControllerEndpoints()
Gets repository rest controller endpoints.- Specified by:
getRepositoryRestControllerEndpoints
in interfaceorg.springdoc.core.RepositoryRestResourceProvider
- Returns:
- the repository rest controller endpoints
-
getHandlerMethods
public Map getHandlerMethods()
Gets handler methods.- Specified by:
getHandlerMethods
in interfaceorg.springdoc.core.RepositoryRestResourceProvider
- Returns:
- the handler methods
-
customize
public void customize(io.swagger.v3.oas.models.OpenAPI openAPI)
Customize.- Specified by:
customize
in interfaceorg.springdoc.core.RepositoryRestResourceProvider
- Parameters:
openAPI
- the open api
-
-