• 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
Newbie question about ERRest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question about ERRest


  • Subject: Newbie question about ERRest
  • From: Philippe Rabier <email@hidden>
  • Date: Fri, 02 Sep 2011 14:49:00 +0200

Hi all,

We are starting using ERRest in our team and I have a first question:

The default way to get an object (in our case a Project) is :
GET /ra/Project/id

But suppose we have our own globalUID that is not the primary key or if we want to use something else (for example login for a user as we suppose the login is unique), how can we achieve that?

We look at the ERRestExample source and we saw in the PersonController class, method Person():
person= routeObjectForKey("Person");

So the fetch must be handled by routeObjectForKey, I guess… and we have to change something around.

Other philosophical question about Rest: does it make sense to get a person with their login? I'm more confident with the globalUID if we don't want to expose the primary key.

Thanks,

Philippe

 _______________________________________________
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: Newbie question about ERRest
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Re: formValueForKey
  • Next by Date: Re: Newbie question about ERRest
  • Previous by thread: Re: WODisplayGroup repeats the same EO
  • Next by thread: Re: Newbie question about ERRest
  • Index(es):
    • Date
    • Thread