We are working on Running Bahmni Appointments scheduling on OpenMRS. As part of this, while initializing the app we are trying to figure out if this app is running on Bahmni or OpenMRS, based on that we will have to manage the login.
We wanted to leverage global_properties for this. We wanted to know if there is an API which can be used to fetch value of defined global_property. If Yes, We would like to know if that API is public, Since this has to be done before login.
There is already such API available in Bahmni, 2nd API in This Controller. Though we would like to use something for which we don’t need to specify a dependency on Bahmni-Core (mostly OpenMRS-Webservices). We will check if it could be moved to openmrs or not.
do you mean getting it into the community supported module ?
At the time you can create a ticket and create a PR to the community supported repo, but usually that may take some little time to get merged in.
Probably at the time you can implement it into your custom supported module.
Yes, that’s what I meant. I will need to make sure, if it can be back-ported to specific webservices version, which bahmni is using. As of now it uses version 2.17.
with the rest module , we dont do back porting, because the module is built up with different conditional resources (sub-modules) for different Core versions.
You just make sure you add your change in the conditonal resource (maven submodule) that corresponds to the core version you want to run
Actuality your very right @dkayiwa, I have just remebered Global properties are actualy the system settings . I dont know how i missed out that.
@mddubey , just take a look atthe full resource documentation in swagger
Thanks a lot, @dkayiwa and @mozzy . This is what I was looking for. In an initial exploration, it looks like I can access it without logging in as well, so this solves my problem.