What I’m working on!
I’m currently working on IDGEN-24 which is now considered as a community priority ticket.
Work done : Added the identifier source resources to idgen module.
Impending : Documenting these subclass resources.
Issue (Current Blocker)
Following this clear and intuitive doc on documenting REST resources, it clearly states how to make sure your newly introduced Resources are added to the Swagger docs. Well nice catch, this worked for my case on all
@SubResources but failed for all
@SubClassResourceHandlers. Well just to be sure I did the right thing, let me explain what I did.
Justification that the bug is real
Well in the webservices.rest module, we have the Drug resource which has subclassresources like DrugOrder which has a handler where the required methods are also overridden here. I setup a server running the supported openmrs version for these resources but Drug Resource and its Subresources appear but not it’s subclasseresources. I have investigated this for a while.
Could I be missing something? Can someone with a better insight help me!