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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "saic-core-service", contextId = "manager-controller")
public interface ManagerClient {
    @PostMapping("/managers/form")
    HashMap<String, Object> managersForm(@RequestBody String usuari);

    @PostMapping("/managers/search")
    HashMap<String, Object> managersSearch(@RequestParam("center") List<Integer> centres, @RequestParam(name="titulation[]", required=false) List<Integer> titulacions);
}
