users@jsr311.java.net

Re: sub resource locators & generating urls

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 08 Jul 2008 15:12:01 +0200

On Jul 8, 2008, at 2:58 PM, Jo Størset wrote:
>
> Is it an important use case for being able to switch the sub
> resource identifier resolving at different places in an app? If so,
> couldn't it just be done explicitly when needed?
>
Being able to root the same resource class in multiple places is
useful, e.g. a Customer resource could be available at:

/customers/{id}
/orders/{id}/customer/{id}
/invoices/{id}/customer/{id}

etc.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.