title: Swagger not creating PATCH API
body: <p>I have a simple API in spring boot using JpaRepository:</p>
  
  <pre><code>public interface UserRepository extends JpaRepository&lt;User, Long&gt; {...}
  </code></pre>
  
  <p>I'm able to create a user using <code>POST</code> API:</p>
  
  <pre><code>curl localhost:8080/users -i -X POST -H "Content-Type:application/json" -d '{"firstName": "Alik", "lastName": "Elzin", "username": "kilaka"}'
  </code></pre>
  
  <p>I'm also able update one of the fields of a user using PATCH:</p>
  
  <pre><code>curl localhost:8080/users/1 -i -X PATCH -H "Content-Type:application/json" -d '{"firstName": "Alikuki"}'
  </code></pre>
  
  <p>Swagger config:</p>
  
  <pre><code>@Configuration
  public class SwaggerConfig {
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.any())
                  .build();
      }
  }
  </code></pre>
  
  <p>When using swagger to create the API as UI, I see the <code>POST</code> option and also a <code>PUT</code> option, but not the working <code>PATCH</code> API. See screecap below.</p>
  
  <p><strong>Any idea how I can make swagger generate the PATCH API?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/3oyjx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3oyjx.png" alt="enter image description here"></a></p>