diff --git a/src/main/java/com/rbkmoney/clickhousenotificator/resource/NotificationResourceImpl.java b/src/main/java/com/rbkmoney/clickhousenotificator/resource/NotificationResourceImpl.java index 02c033b..4e58dec 100644 --- a/src/main/java/com/rbkmoney/clickhousenotificator/resource/NotificationResourceImpl.java +++ b/src/main/java/com/rbkmoney/clickhousenotificator/resource/NotificationResourceImpl.java @@ -50,6 +50,7 @@ public Notification delete(@Validated @PathVariable String name) { return notification; } + // должен быть POST @Override @GetMapping(value = "/notification/{name}/{status}") public void setStatus(@Validated @PathVariable String name, diff --git a/src/main/java/com/rbkmoney/clickhousenotificator/resource/ReportResourceImpl.java b/src/main/java/com/rbkmoney/clickhousenotificator/resource/ReportResourceImpl.java index 55c56e8..919f63a 100644 --- a/src/main/java/com/rbkmoney/clickhousenotificator/resource/ReportResourceImpl.java +++ b/src/main/java/com/rbkmoney/clickhousenotificator/resource/ReportResourceImpl.java @@ -22,6 +22,7 @@ public class ReportResourceImpl implements ReportResource { private final ReportNotificationDao reportNotificationDao; + //вынес бы в отдельную сущность Filter и сделал бы поиск более гибкий, уродливый эндпоинт @Override @GetMapping(value = "/report/{status}/{from}") public List findReportsByStatusAndFromTime(@Validated @PathVariable ReportStatus status,