OpenMRS API caches some entities in the hibernate 2nd level cache, when another application modifies data in the database outside of the OpenMRS API, it needs call OpenMRS via rest to discard the old state of entities otherwise in the UI users continue to see the old states.
The endpoints need to support the following use cases,
- Evicting a single entity from the cache
- Evicting all entities of a given type from the cache
- Clearing the entire cache