Details
-
Enhancement
-
Status: Ready for Work
-
Could
-
Resolution: Unresolved
-
2.0
-
None
-
None
-
Undetermined
Description
Currently when annotations a REST resource with the supported REST versions, we generally list each minor version separately, for example:
supportedOpenmrsVersions = {"1.9.*", "1.10.*", "1.11.*", "1.12.*", "2.0.*", "2.1.*", "2.2.*", "2.3.*", "2.4.*"}
This is problematic (or at least annoying) because each time we update to a new version of Core we need to find all the modules that define resources and add the new minor version.
For simple cases (where a resource is meant to support all existing 2.x version), we should change the annotations to something like this:
supportedOpenmrsVersions = {"1.9.*", "1.10.*", "1.11.*", "1.12.*", "2.*"}
For more complex cases, say, for example, a resource that only supports 2.2.x and above, we should change this:
supportedOpenmrsVersions = {"2.2.*", "2.3.*", "2.4.*"}
to this:
supportedOpenmrsVersions = {"2.2.* - 2.*"}