ParseClient.java 1.0 KB

1234567891011121314151617181920212223242526
  1. package es.uv.saic.feign;
  2. import java.io.IOException;
  3. import java.sql.SQLException;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestParam;
  7. import jakarta.servlet.http.HttpServletResponse;
  8. @FeignClient(value = "parse-controller", url = "${saic.url.domain}/core")
  9. public interface ParseClient {
  10. @PostMapping("/admin/parse/do")
  11. public void doParse(HttpServletResponse response, @RequestParam String database,
  12. @RequestParam String table, @RequestParam Integer year) throws IOException, SQLException, ClassNotFoundException;
  13. @PostMapping("/admin/parse/action")
  14. public void doAction(HttpServletResponse response, @RequestParam String action)
  15. throws IOException, SQLException, ClassNotFoundException;
  16. @PostMapping("/admin/parse/delete")
  17. public void doDelete(HttpServletResponse response, @RequestParam String action, @RequestParam Integer year)
  18. throws IOException, SQLException, ClassNotFoundException;
  19. }