Class 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 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 mappings
        repositories - the repositories
        associations - the associations
        applicationContext - the application context
        dataRestRouterOperationService - the data rest router operation builder
        persistentEntities - the persistent entities
        mapper - 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 interface org.springdoc.core.RepositoryRestResourceProvider
        Parameters:
        openAPI - the open api
        locale - the locale
        Returns:
        the router operations
      • getRepositoryRestControllerEndpoints

        public Map<String,​Object> getRepositoryRestControllerEndpoints()
        Gets repository rest controller endpoints.
        Specified by:
        getRepositoryRestControllerEndpoints in interface org.springdoc.core.RepositoryRestResourceProvider
        Returns:
        the repository rest controller endpoints
      • getHandlerMethods

        public Map getHandlerMethods()
        Gets handler methods.
        Specified by:
        getHandlerMethods in interface org.springdoc.core.RepositoryRestResourceProvider
        Returns:
        the handler methods
      • customize

        public void customize​(io.swagger.v3.oas.models.OpenAPI openAPI)
        Customize.
        Specified by:
        customize in interface org.springdoc.core.RepositoryRestResourceProvider
        Parameters:
        openAPI - the open api