It's very easy. You have to create a REST delegate which returns the value for the ID and fetches the object with the id contained in the route.
Look at Pascal's slides on slideshare. One presentation ERRest in depth or something like that explains everything. Philippe --------------------- http://twitter.com/prabier Sent from my iPhone > On 27 Sep 2014, at 00:47, Paul Yu <[email protected]> wrote: > > You would pass the uuid as a parameter on the index call? > > Sent from my iPad > >> On Sep 26, 2014, at 2:37 PM, Fabian Peters <[email protected]> wrote: >> >> I'd know how to do this via a custom action, a qualifier and mod_rewrite, >> but: Is there an easy way to get a rest route to retrieve an object by a >> different attribute than the PK? >> >> /ra/Booking/a4450596-662b-43ac-cc4f-ecd4d7b37409.json >> >> or maybe >> >> /ra/Booking/uuid/a4450596-662b-43ac-cc4f-ecd4d7b37409.json >> >> Fabian >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com >> >> This email sent to [email protected] > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/prabier%40icloud.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
