• 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: getting to know Mr. ERXRoute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting to know Mr. ERXRoute


  • Subject: Re: getting to know Mr. ERXRoute
  • From: Jesse Tayler <email@hidden>
  • Date: Thu, 30 Dec 2010 00:00:39 -0500

On Dec 29, 2010, at 9:34 PM, Pascal Robert wrote:

> You are making it harder that it should :-)  If a "Post" is a EO etablished as a relationship to User, you don't need to create custom routes to create related objects. Check the Movies and ERRestRouteExample from Wonder for good examples of how to implement routes.


Ok, so this should have a route already then eh?

So, if I access the json for a specific user, I should be able to add to a To Many?

I keep wanting to try something like this?

curl -X POST -d "{ posts:{title:'New Post'}}" http://10.0.1.3:5999/cgi-bin/WebObjects/WOMan.woa/ra/u/jtayler.json

Am I on the right track there? Add a new post to access a user by the username 'jtayler', -- a route I just wrote?

I get a missing route error--


 _______________________________________________
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: getting to know Mr. ERXRoute
      • From: Jesse Tayler <email@hidden>
References: 
 >getting to know Mr. ERXRoute (From: Jesse Tayler <email@hidden>)
 >Re: getting to know Mr. ERXRoute (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: getting to know Mr. ERXRoute
  • Next by Date: Re: Injected javascript in a safari extension
  • Previous by thread: Re: getting to know Mr. ERXRoute
  • Next by thread: Re: getting to know Mr. ERXRoute
  • Index(es):
    • Date
    • Thread