I´d develop some Restful services in my application, like (URI):
xxx/method/blah yyy/method/bleh zzz/method
all of these resources (xxx, yyy, zzz) are specifical products in my business and now i need design the sale definition to them. I think in:
xxx/sell yyy/sell zzz/sell
But it looks like to me not cohesive because i think that the sell behaviour should be an unique and specifical resource, like:
transaction/sell/xxx transaction/sell/yyy transaction/sell/zzz
What is (should be) right here for you?
Thanks.
To be RESTful, you want the verb (eg. “sell”) to be the HTTP method. The URI should identify the resource, not the action to be taken on the resource.