- getRepresentationDescription(Representation rep)
These methods are used to define representations of a resource. These were earlier being used in webservices.rest module to construct the Open API spec. But now these are no longer being used , since we use the alternative APIs: getGETModel, getCREATEModel, getUPDATEModel for documenting resources.
If the old getRepresentationDescription, getCreatableProperties, and getUpdatableProperties methods are not being used anywhere else, we could deprecate those, so that we don’t need define them when introducing a new resource. I’m not sure if they are being used in openmrs-core.
These methods are defined in DelegatingResourceHandler interface in OpenMRS REST module.