On Wed, Mar 3, 2010 at 6:57 PM, Devan Goodwin dgoodwin@rm-rf.ca wrote:
On Wed, Mar 3, 2010 at 6:05 PM, Jesus M. Rodriguez jmrodri@gmail.com wrote:
1:: Plurals
No real reference, but is looks like most folks use /owners /customers /jedi instead of /owner /customer /jedum.
Not sure how the framework handles this without moving them to a new Resource class. Today we have an @Path("/owner") at the top of the OwnerResource, maybe we remove that and put @Path on individual methods otherwise, we're looking at OwnersResource, CustomersResource, JediResource (nothing to see in this one).
Can't we just change the @Path to point to "/owners" across the board? I was reading this as changing to plurals for all resources all the time but I may have gotten a wire crossed there.
Nope, I misread the original, I read it as "/owners /customers /jedi *AND* /owner /customer /jedum"
because that's what I'm used to seeing /owner for a single and plurals for collections. But if we're going with plurals across the board then the @Path isn't a problem at all.
jesus