package net.gepafin.tendermanagement.service.feignClient; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; @FeignClient(name = "mailgunClient", url = "${mailGun_base_url}") public interface MailgunFeignClient { @PostMapping("/v3/{domain}/messages") ResponseEntity sendEmail( @PathVariable("domain") String domain, @RequestParam("from") String from, @RequestParam("to") List to, @RequestParam("subject") String subject, @RequestParam("html") String htmlBody, @RequestHeader("Authorization") String authorizationHeader); }