In Bahmni demo server as well as in OpenMRS demo pages, the swagger API documentation error exists. We worked on resolving it and took several links as reference and also the OpenMRS documentation.
Great work done.
The Web Services Module is responsible for Implementing the REST API for the OpenMRS Core and also generating the Swagger Document.
But some modules that come with their own data model objects other than the Core model Objects ,can implement their own REST APIs and generate their own swagger documents.
So ideally ,
The PRs would go to the Web Services Module and any other module that generates its own swagger document.
So as I already mentioned in that comment, the changes we made were outside webservices.rest module say bedmanagement, operationtheater to name a few. So from your answer I understand that I should raise a PR to those respective modules. Please correct me if I’m wrong. Thanks in advance!