Hi all, I’m fairly new to OpenMRS development, having only been working on it for a few weeks on and off trying to get my head around things. I’m currently working on a module (probably just internal) and have been experimenting with the REST API documentation generator (might as well understand the framework properly in the process).
I’ve found the
getGETModel and associated methods within the resource having looked at how its done in the webservices module, however these don’t appear to be getting called when outside this module. I think I’ve tracked it down to this
if statement in the swagger creator, but I can’t see any logic behind it.
Having argued with maven I’ve got a build running without that statement and everything appears normal only now I’m getting my custom docs for extensions of
DataDelegatingCrudResource, but still not for
MetadataDelegatingCrudResource. I’ve submitted a help ticket to get access to the issue tracker to put a more technical issue in and then potentially submit a patch, but in the meantime I’m wondering if I’m missing something bigger.