Re: ERRest with non-PK attribute

2014-09-28 Thread Fabian Peters
Thanks, Michael and Philippe! Implementing BookingRestDelegate and overriding createObjectOfEntityWithID did the trick. Fabian Am 26.09.2014 um 21:20 schrieb Michael Kondratov : > You could create a custom rest delegate object. > > Michael > www.aspireauctions.com > > Sent from my iPhone >

Re: ERRest with non-PK attribute

2014-09-26 Thread Philippe Rabier
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 - h

Re: ERRest with non-PK attribute

2014-09-26 Thread Paul Yu
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 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

Re: ERRest with non-PK attribute

2014-09-26 Thread Michael Kondratov
You could create a custom rest delegate object. Michael www.aspireauctions.com Sent from my iPhone > On Sep 26, 2014, at 2:37 PM, Fabian Peters 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 o

ERRest with non-PK attribute

2014-09-26 Thread Fabian Peters
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-ecd4d7b374