RFC: API changes

Bryan Kearney bkearney at redhat.com
Thu Mar 4 02:09:54 UTC 2010


On 03/03/2010 06:57 PM, Devan Goodwin wrote:
> On Wed, Mar 3, 2010 at 6:05 PM, Jesus M. Rodriguez<jmrodri at 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.
>
Yes, that is what I was thinking... should be just mucking with the 
@Path annotations.

-- bk




More information about the candlepin mailing list