Is there any Rest API to get providers based on provider attribute. If I have a provider attribute of type boolean, I want to get all the providers with that provider attribute set as True. Do we have any such API?
I don’t think there is any default API.
You can write a custom search handler.
Check org.openmrs.module.webservices.rest.web.resource.api.SearchHandler For reference check org.bahmni.module.bahmnicore.web.v1_0.search.BahmniConceptSearchHandler
Alternatively, you can always write your own HTTP end point, just make sure that you follow the same contract for providers.
It seems worthwhile to add this as a search handler directly in the webservices.rest module. It would be useful outside of Bahmni also.