On Sat, Oct 6, 2012 at 11:13 AM, Alexander Zaslonov <
I'm currently in the midst of a similar project. I'm developing in Rails
and neither of those options was an obvious fit. What I ended up doing is
defining a couple of query parameters to signal the need for counts and
sums: computed and computation_type. computed can be true or false.
computation_type can be count or sum. So to retrieve a count of active
clients, for example, the URL is:
not altogether happy with it, but it makes it easy on the controller and
easy to understand inasmuch as the same query without the two parameters
retrieves the actual data elements.