Re: RESTful WO messages for non-persistent objects
Re: RESTful WO messages for non-persistent objects
- Subject: Re: RESTful WO messages for non-persistent objects
- From: Mike Schrag <email@hidden>
- Date: Tue, 23 Jun 2009 11:42:59 -0400
if you're creating new objects, i THINK it should just work with errest ... if you're referencing existing ones, you have to provide an implementation IERXRestDelegate that can resolve objectOfEntityNameWIthID (where "entity name" is really "class name" for non-EOs)
... in your ERXRouteController subclass:
/** * Returns the default rest delegate for this controller (an ERXRestRequestNode.EODelegate using the editing context * returned from editingContext()). Override this method to provide a custom delegate implementation for this * controller. * * @return a default rest delegate */ protected IERXRestDelegate delegate() { return new ERXEORestDelegate(editingContext()); }
|
_______________________________________________
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