Have you implemented OpenMRS? Please participate in the Implementation Site Survey. If you already have, thank you!
The Reporting REST module lets you do reporting queries against your OpenMRS database, via REST web services. For example you can search for patients matching some criteria, or get a table of data for a given set of patients.
This module exposes the functionality in the Reporting Module, so you should look to that module's documentation for details of the available queries and dataset definitions.