I am able to expose basic resource API extending DelegatingCrudResource and Override methods. But I also want to add some other custom API path. How can I do that?
For example, I have admissionLocation in the OpenMRS API. With extending DelegatingCrudResource I can expose basic API like:
[GET] /ws/rest/admissionlocation
[GET] /ws/rest/admissionlocation/uuid
[POST] /ws/rest/admissionlocation
But I also want to add some other custom API path like:
[GET] /ws/rest/admissionlocation/ward
[POST] /ws/rest/admissionlocation/ward
[GET] /ws/rest/admissionlocation/room
[POST] /ws/rest/admissionlocation/room