public class SpringRepositoryRestResourceProvider extends Object implements org.springdoc.core.RepositoryRestResourceProvider
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_SCHEMA_CONTROLLER
The constant REPOSITORY_SCHEMA_CONTROLLER.
|
Constructor and 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.
|
Modifier and Type | Method and 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) |
public static final String REPOSITORY_SCHEMA_CONTROLLER
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)
mappings
- the mappingsrepositories
- the repositoriesassociations
- the associationsapplicationContext
- the application contextdataRestRouterOperationService
- the data rest router operation builderpersistentEntities
- the persistent entitiesmapper
- the mapperpublic List<org.springdoc.core.fn.RouterOperation> getRouterOperations(io.swagger.v3.oas.models.OpenAPI openAPI)
getRouterOperations
in interface org.springdoc.core.RepositoryRestResourceProvider
public Map<String,Object> getRepositoryRestControllerEndpoints()
getRepositoryRestControllerEndpoints
in interface org.springdoc.core.RepositoryRestResourceProvider
public Map getHandlerMethods()
getHandlerMethods
in interface org.springdoc.core.RepositoryRestResourceProvider
public void customize(io.swagger.v3.oas.models.OpenAPI openAPI)
customize
in interface org.springdoc.core.RepositoryRestResourceProvider
openAPI
- the open apiCopyright © 2021. All rights reserved.