18 lines
691 B
Java
18 lines
691 B
Java
package net.gepafin.tendermanagement.service.feignClient;
|
|
|
|
import feign.Headers;
|
|
import net.gepafin.tendermanagement.model.request.PecEmailRequest;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
|
@FeignClient(name = "pecClient", url = "${api.pecUrl}")
|
|
public interface PecFeignClient {
|
|
@PostMapping("/send")
|
|
ResponseEntity<Void> sendEmail(@RequestHeader("Authorization") String token,
|
|
@RequestBody PecEmailRequest emailRequest);
|
|
}
|
|
|