package fr.animenfance.partenaire.controller;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import fr.animenfance.bean.Partenaire;

public interface PartenaireIndexerService {

  @GetMapping(value = "/partenaires/search", produces = APPLICATION_JSON_VALUE)
  ResponseEntity<List<Partenaire>> searchPartenaire(
    @RequestParam(name = "search") final String search,
    @RequestParam(name = "hitCount") final Integer hitCount);

  @GetMapping(value = "/partenaires/rebuild-index")
  void rebuildIndex();

}

@@ -112,16 +112,89 @@
 N_VALUE;
+%0Aimport static org.springframework.web.bind.annotation.RequestMethod.GET;
 %0A%0Aimport
@@ -306,18 +306,22 @@
 otation.
-Ge
+Reques
 tMapping
@@ -468,26 +468,30 @@
 rvice %7B%0A%0A  @
-Ge
+Reques
 tMapping(val
@@ -517,16 +517,38 @@
 search%22,
+%0A    method = GET,%0A   
  produce
@@ -754,10 +754,14 @@
 %0A  @
-Ge
+Reques
 tMap
@@ -801,16 +801,34 @@
 d-index%22
+,%0A    method = GET
 )%0A  void

Rollback to @RequestMapping to comply with feign validation.