Skip to content

Commit

Permalink
EA-194: REST API url should have same standard prefix as other REST e…
Browse files Browse the repository at this point in the history
…ndpoints in OpenMRS (#234)
  • Loading branch information
mogoodrich authored Jul 11, 2024
1 parent 893ced5 commit 96d8860
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping(value = "/rest/emrapi/configuration")
@RequestMapping(value = "/rest/**/emrapi/configuration")
public class EmrApiConfigurationController {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96d8860

Please sign in to comment.