> Counting does not belong to HTTP and in my view
> whether aresource"/collection/count" makes sense or not is
> application dependent, so I wouldn't put it in the API.

OK, maybe it doesn't make sense to include it in the core API,
however, at the end of the day, I still need that count - transfering
1million records, and then counting, makes no sense.
How would you expose this functionality through a REST interface in
rails? To me it seems like ARes only supports CRUD-style operations -
where you can only get one or more table rows etc.
In addition to count, I also need to call arbitrary business methods
on my active record models - how would you do that? For instance, I'd
like to call stuff like my_user.has_role?('Manager') using a REST api.
Maybe it would make sense to add some functionality similar to XMLRPC
to ARes?
>From what I know about REST, functionality and state can both be
considered as resources.

Stefan





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to