Adding new REST URL: Unable to getRepresentationDescription for a Class object I created

Tags: #<Tag:0x00007f5ffb336ff0> #<Tag:0x00007f5ffb336f28> #<Tag:0x00007f5ffb336e10> #<Tag:0x00007f5ffb336d20>

Hello everyone, I am developing a restful API that deserves some services to a front end module using OpenMRS rest API. For example, I have two Classes Region and District, where one class (District) contains an attribute linked to the other. When attempting to get the list of District using rest API, I got this error. Here is the RequestResource of my classes.

Please could some one can help on this?. Thanks

Did you fix this? I see a commit with message: Fixing issued linked with Representative description. now working

you would create Resources for both the entity data models and then this property would reference the resource Representation of the other Region Resource


description.addProperty("region" , Representation.DEFAULT);

instead of


the latter applies to a primitive data types not an entity model