Imagine a system with Users, Groups with corresponding ApiControllers.
Then imagine following access patterns:
/api/users
/api/users/1
/api/users?groupId=1 <- #1 returns users belonging to group id 1 via Get(int? groupId)
/api/groups/
/api/groups/1
/api/groups/1/users <- #2 sub resource, returns users belonging to group id 1
Is it possible to delegate responsibility of #2 to #1's Get(int? groupId) method?
I'd like to keep responsibility of handling sub-resources with their original Controller.
In another words, If a sub-resource also exists as resource then sub-resource handling should be? delegated to primary resource controller...
P.S. Now, I am not sure if the above approach is "cosher" with RESTfull styles, that is whole other discussion...