package es.uv.saic.feign;

import java.util.HashMap;
import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import es.uv.saic.dto.EvidenciaBuscadorDTO;

@FeignClient(name = "saic-core-service", contextId = "tasca-controller")
public interface TascaClient {
     @PostMapping("/search/evidences")
	public HashMap<String, Object> getEvidencesByCenterTitulationYear(
        @RequestParam(name="centers[]", required=false) List<Integer> centres,
        @RequestParam("years[]") List<Integer> cursos,
        @RequestParam("titulations[]") List<Integer> titulacions);
    @GetMapping("/getEvidencesByProcedure/{idProces}")
    public List<EvidenciaBuscadorDTO> getEvidencesByProcedure(@PathVariable Integer idProces);
}
