@suthagar23, we can add support for the REST call that you want. What data do you have available to query with? I guess you have the module’s is the information that you have available? The module’s package?
We can add support for something like
GET https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage={xyz}
@reubenv, please see the last few messages in this thread. Can you please add this new REST endpoint as your top priority?
(We can deploy this before we finish with the current PR that we’re working on. This will give you a chance to practice using git branch…)
@darius Yah that will be great
I have all the details (uuid, package , name) which can obtain using “openmrs/ws/rest/v1/module?v=full”.
Here I wanted to generate those GET URLs for all modules repeatedly to check updates and for some more information. So I need that calling method.
using this, I am getting all the module details, but I want only for requested module package.
GET https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage={xyz}
@dkayiwa
Follow this link to download the latest SysAdmin up to now. And you can use this link to download the required webservices.REST module with sysAdmin Resource.
There are some errors on Module update. OpenMRS AddOns REST endpoint wanted to fix this issue.
@suthagar23 I’m not quite sure . I have submitted the PR so when Darius finds time, he’ll review it. He said that he’d be free tonight so he’ll probably check it out tonight.
I have updated the module upload or upgrade page with drag and drop feature. Now user can just drag and drop the module(.omod) file to upload to the server.
Whenever i drag and drop a module and then click the “Upload Module” button, i get this error:
[Failed to convert value of type ‘java.lang.String’ to required type ‘org.springframework.web.multipart.MultipartFile’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.MultipartFile]: no matching editors or conversion strategy found]
@dkayiwa
I have updated drag and drop part and Now It’s working perfectly, You can test it now and I have changed progress spinner from OpenMRS logo to another one, you can see it here,