• 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: ERXRoute question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXRoute question


  • Subject: Re: ERXRoute question
  • From: Pascal Robert <email@hidden>
  • Date: Thu, 20 Dec 2012 12:47:00 -0500

Le 2012-12-20 à 09:56, James Cicenia <email@hidden> a écrit :

> Here is the documentation:
>
> ERXRoute encapsulates a URL path with matching values inside of it. For instance, the route "/company/{company:Company}/employees/{Person}/name/{name:String}" would yield an objects(..) dictionary with a Company EO mapped to the key "company," a Person EO mapped to the key "Person" and a String mapped to the key "name". ERXRoutes do not enforce any security -- they simply represent a way to map URL patterns onto objects.
>
> What is this doing? Why is it {Person} and not {person:Person}?
>
> What would be an example of usage for the above? And it says "yield an objects dictionary", where is that dictionary coming from?

Never looked at the details, but if {Person} works (I never tried it), I guess it's a convention that the key to use in routeObjectForKey will be Person is lower case.
 _______________________________________________
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


References: 
 >ERXRoute question (From: James Cicenia <email@hidden>)

  • Prev by Date: [SOLVED] Re: DataBase Connection and EOUtilities.rawRowsForSQL
  • Next by Date: Re: REST Relationship
  • Previous by thread: ERXRoute question
  • Next by thread: REST Relationship
  • Index(es):
    • Date
    • Thread