Re: Overriding ERRest output
Re: Overriding ERRest output
- Subject: Re: Overriding ERRest output
- From: Mike Schrag <email@hidden>
- Date: Wed, 1 Sep 2010 11:41:18 -0400
haven't tried it (yet) but i think ERXAbstractRestResponseWriter (or the subclass ERXXmlRestResponseWriter) might be what you're looking for.
That's the old entityDelegates package, which is obsoleted.
So I want to override not just what the entities are called (just for this one request - not for all requests against Account and Identity) but I also want to flatten some of the relationships and rename attributes.
I would make a non-EO and map them in and out. I suppose we might be able to add some syntax to ERXKeyFilter to do flattening, but it seems like that's just s recipe for complication. At some point it just isn't the EO graph -- it's some view of the EO graph -- and that sounds, to me, like a new entity type.
ms |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden