public class NotifyRuleClient {
private final RestService restService;
public NotifyRuleClient(RestService restService) {
this.restService = restService;
}
public Response getRuleList(GetRuleListRequest request) {
return restService.restClient()
.post(
spec -> spec.body(request),
NotifyRuleEndpoints.GET_RULE_LIST
)
.toResponse();
}
}
public final class NotifyRuleEndpoints {
private NotifyRuleEndpoints() {}
public static final String GET_RULE_LIST =
"/sber911/ms/notify-rule/web/getRuleList";
}