title: Spring Data REST Endpoints Not Generating In Swagger UI
body: <p>I've implemented a controller using <code>@BasePathAwareController</code> which also takes advantage of Spring Data REST (for finds to expose sort/size etc.) 
  along with some custom endpoints (for updates etc.). The application is working as expected and the endpoints Spring 
  Data REST generates are working as expected and I can see the self links appear in the responses, however, i can't see 
  these endpoints in Swagger UI. I can just see my custom endpoints 
  defined in my Controller.  </p>
  
  <p>According to this <a href="https://stackoverflow.com/questions/41425425/swagger-not-detecting-spring-data-rest-apis-with-spring-boot">post</a> I need to use Swagger <code>3.0.0-SNAPSHOT</code> with <code>@EnableSwagger2WebMvc</code> </p>
  
  <p>Here's my configurations:</p>
  
  <p>My <code>app.yml</code>:</p>
  
  <pre><code>spring:
      data:
        rest:
          basePath: /api/v1
  </code></pre>
  
  <p>My <code>POM</code> file:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.1.8.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt;
  &lt;/parent&gt;
  &lt;properties&gt;        
          &lt;springfox.swagger.version&gt;3.0.0-SNAPSHOT&lt;/springfox.swagger.version&gt;       
  &lt;/properties&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;io.springfox&lt;/groupId&gt;
      &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
      &lt;version&gt;${springfox.swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.springfox&lt;/groupId&gt;
      &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
      &lt;version&gt;${springfox.swagger.version}&lt;/version&gt;         
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.springfox&lt;/groupId&gt;
      &lt;artifactId&gt;springfox-data-rest&lt;/artifactId&gt;
      &lt;version&gt;${springfox.swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Swagger Config File:</p>
  
  <pre><code>@Configuration
  @Import(SpringDataRestConfiguration.class)
  @EnableSwagger2WebMvc
  public class SwaggerConfig {
  
      @Bean
      public Docket api(ServletContext servletContext) {
          return new Docket(DocumentationType.SWAGGER_2)          
          .select()
          .apis(RequestHandlerSelectors.basePackage("my.package.name"))
          .paths(PathSelectors.any())
          .build().apiInfo(apiEndPointsInfo());
      }
  
      private ApiInfo apiEndPointsInfo() {
          return new ApiInfoBuilder().title("My App REST API's")
              .description("My App REST API's")            
              .version("1.0").build();
      }
  
  }
  </code></pre>
  
  <p>My repo:</p>
  
  <pre><code>  @RepositoryRestResource(exported=true, collectionResourceRel="group", path="group")
  public interface GroupRepository extends JpaRepository&lt;Group, Long&gt;, JpaSpecificationExecutor&lt;Group&gt; {
  
  
  }
  </code></pre>
  
  <p>Why can't i see the default endpoints that Spring Data REST produces?</p>