From 95b6602ec53fe05500a7282fe66cb3c0b8ed0868 Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Thu, 24 Oct 2024 12:01:58 +0200 Subject: [PATCH] [#205] Implement endpoint to get a allowedRejectMessage settings --- .../cz/cvut/kbss/study/rest/PatientRecordController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java index 73199e0d..30820861 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java @@ -354,4 +354,9 @@ public void removeRecord(@PathVariable("key") String key) { LOG.trace("Patient record {} successfully removed.", toRemove); } } + + @GetMapping(value = "/allowedRejectMessage", produces = MediaType.APPLICATION_JSON_VALUE) + public boolean getAllowRejectMessageEnabled(){ + return configReader.getConfig(ConfigParam.RECORDS_ALLOWED_REJECT_MESSAGE).equals("true"); + } }