package es.uv.saic.feign;

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

import jakarta.servlet.http.HttpServletResponse;

@FeignClient(name = "saic-core-service", contextId = "parse-controller")
public interface ParseClient {

    @PostMapping("/admin/parse/do")
	public void doParse(HttpServletResponse response, @RequestParam String database, 
        @RequestParam String table, @RequestParam Integer year);	

    @PostMapping("/admin/parse/action")
	public void doAction(HttpServletResponse response, @RequestParam String action);

    @PostMapping("/admin/parse/delete")
	public void doDelete(HttpServletResponse response, @RequestParam String action, @RequestParam Integer year);
}
