• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overriding ERRest output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Overriding ERRest output
      • From: David Avendasora <email@hidden>
References: 
 >Overriding ERRest output (From: David Avendasora <email@hidden>)
 >Re: Overriding ERRest output (From: Martin Samm <email@hidden>)

  • Prev by Date: Re: ERAttachment help
  • Next by Date: Re: Overriding ERRest output
  • Previous by thread: Re: Overriding ERRest output
  • Next by thread: Re: Overriding ERRest output
  • Index(es):
    • Date
    • Thread