Hi,
I am working on https://issues.openmrs.org/browse/RESTWS-627, as part of migrating Manage Modules section to OWA. Most of functionality (like starting/stopping single module) is pretty straightforward, but problematic question is, how to expose endpoint to start all modules?
After quick consulatation with @raff, we see 2 options:
-
Create new resource,
modulemanagement
to handle this operation. It is a bit out of convention, but Swagger would document it. -
Modify
systemsettings
resource, so sending POST request with json body e.g.{'property':'modulesmanagement.startAll','value':'true'}
(analogic to creating new GlobalProperty), would trigger starting all modules. Swagger wouldn’t document this behaviour, but we would avoid creating new endpoint for single action.
Any thoughts? Maybe you have some better ideas?