title: Multiple HTTP methods display for the spring fox health route in swagger
body: <p>I have use spring boot actuator health with spring fox swagger in a spring boot projet. I use below in my Application.java class.</p>
  
  <pre><code>@Autowired
  private HealthAggregator healthAggregator;
  
  @Autowired
  private Map&lt;String, HealthIndicator&gt; healthIndicators;
  
  @Bean
  public com.health.TestMeHealthEndpoint getHealthEndpoint() {
      return new com.health.TestMeHealthEndpoint(healthAggregator, healthIndicators);
  }
  
  @Bean
  public Docket testMeApi() {
      return new Docket(DocumentationType.SWAGGER_2).useDefaultResponseMessages(false).apiInfo(apiInfo()).select()
              .paths(testMePaths()).build();
  }
  
  private Predicate&lt;String&gt; testMePaths() {
      return or(regex("/api/myservice1"), regex("/health"));
  }
  </code></pre>
  
  <p>But when I check the swagger ui, I see multiple end points for health with all types of http methods include POST,DELETE, OPTIONS etc. For myservice1 which implement in the REST contoller, it only display the GET method.</p>
  
  <p>The TestMeHealthEndpoint extends AbstractEndpoint and overide invoke method with custom health information.</p>
  
  <p>I only want to see is the GET method for the health route?</p>
  
  <p>Add source of TestMeHealthEndpoint:</p>
  
  <pre><code>@ConfigurationProperties(prefix = "endpoints.health", ignoreUnknownFields = true)
  public class TestMeHealthEndpoint  extends AbstractEndpoint&lt;Health&gt; {
  
    //Some getter and setters for api name , version etc
  
    public TestMeHealthEndpoint (final HealthAggregator healthAggregator,
              final Map&lt;String, HealthIndicator&gt; healthIndicators) {
          super("health", false);
          final CompositeHealthIndicator healthIndicator = new CompositeHealthIndicator(healthAggregator);
          for (final Map.Entry&lt;String, HealthIndicator&gt; entry : healthIndicators.entrySet()) {
              healthIndicator.addHealthIndicator(getKey(entry.getKey()), entry.getValue());
          }
          this.healthIndicator = healthIndicator;
      }
  
    @Override
      public Health invoke() {
          final Health health = new Health();
          health.setStatus(this.healthIndicator.health().getStatus().getCode());
          health.setName(this.apiName);
          health.setVersion(this.apiVersion);
          final UriComponentsBuilder path = ServletUriComponentsBuilder.fromCurrentServletMapping()
                  .path(this.managementContextPath).pathSegment(this.getId());
          health.add(new Link(path.build().toUriString()).withSelfRel());
          return health;
      }
  }
  </code></pre>