From 96d886050e542d92e2a9182454453df34dc8b23f Mon Sep 17 00:00:00 2001 From: Mark Goodrich Date: Thu, 11 Jul 2024 17:57:47 -0400 Subject: [PATCH] EA-194: REST API url should have same standard prefix as other REST endpoints in OpenMRS (#234) --- .../module/emrapi/web/controller/ActiveVisitController.java | 2 +- .../module/emrapi/web/controller/DiagnosisController.java | 2 +- .../emrapi/web/controller/EmrApiConfigurationController.java | 2 +- .../emrapi/web/controller/EmrConceptSearchController.java | 2 +- .../module/emrapi/web/controller/EmrEncounterController.java | 2 +- .../module/emrapi/web/controller/InpatientVisitsController.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/ActiveVisitController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/ActiveVisitController.java index 74503e6a8..baff683e6 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/ActiveVisitController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/ActiveVisitController.java @@ -21,7 +21,7 @@ * (Currently only supports "ensureActiveVisit") */ @Controller -@RequestMapping(value = "/rest/emrapi/activevisit") +@RequestMapping(value = "/rest/**/emrapi/activevisit") public class ActiveVisitController extends BaseRestController { @Autowired diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/DiagnosisController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/DiagnosisController.java index 867ae0734..5645e7f94 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/DiagnosisController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/DiagnosisController.java @@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @Controller -@RequestMapping(value = "/rest/emrapi") +@RequestMapping(value = "/rest/**/emrapi") public class DiagnosisController extends BaseRestController { @Autowired diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrApiConfigurationController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrApiConfigurationController.java index df8de93df..a2bd5b113 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrApiConfigurationController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrApiConfigurationController.java @@ -16,7 +16,7 @@ import javax.servlet.http.HttpServletResponse; @Controller -@RequestMapping(value = "/rest/emrapi/configuration") +@RequestMapping(value = "/rest/**/emrapi/configuration") public class EmrApiConfigurationController { @Autowired diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrConceptSearchController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrConceptSearchController.java index c41816489..93f22f259 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrConceptSearchController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrConceptSearchController.java @@ -43,7 +43,7 @@ import static org.springframework.web.bind.annotation.ValueConstants.DEFAULT_NONE; @Controller -@RequestMapping(method = RequestMethod.GET, value = "/rest/emrapi/concept") +@RequestMapping(method = RequestMethod.GET, value = "/rest/**/emrapi/concept") public class EmrConceptSearchController { @Autowired EmrApiProperties emrApiProperties; diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrEncounterController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrEncounterController.java index 5d54ce024..d0d4e13e0 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrEncounterController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/EmrEncounterController.java @@ -28,7 +28,7 @@ import java.util.List; @Controller -@RequestMapping(value = "/rest/emrapi/encounter") +@RequestMapping(value = "/rest/**/emrapi/encounter") public class EmrEncounterController extends BaseRestController { @Autowired diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientVisitsController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientVisitsController.java index ddc1b381d..5b5b333f0 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientVisitsController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientVisitsController.java @@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @Controller -@RequestMapping(value = "/rest/emrapi/inpatient") +@RequestMapping(value = "/rest/**/emrapi/inpatient") public class InpatientVisitsController { @Autowired