I am attempting to use ERRest as an interface for a push notification server 
for our iOS apps, and am having some difficulties, partly related to never 
having used Rails or Rest to begin with.  I am looking to have the server 
receive json files for the notifications from the web side of our company, and 
then process them, sending appropriate notifications back to the Apple APN 
server for each device.  Also it needs to be able to receive json requests from 
the devices themselves when they install the app and turn on notifications.  So 
it seemed to me that ERRest would be a good option for a WO app which takes 
JSON and (through Javapns google code project) sends Apple what Apple needs to 
send the notifications.

I watched Mike's screencast for a WO-NoVA from last year, and I think I 
understand some of the basics.  Is there an ERRest tutorial some place?  I seem 
to remember there was a good overview in the Wonder docs someplace, but do not 
seem to be able to find it now.

Basically, I created a couple subclasses of ERXDefaultRouteController for each 
of a couple entities, and have added a bunch of rest related stuff into the 
Application constructor.  I'm not, however, very clear on what I need to do to 
have these requests to the server provide me with data as parameters to the 
requests.  I gather that if I have a Register action in my device controller, 
the devices could call a url like http://myurl/ra/Device/Register but I am just 
fundamentally missing something about how parameters would work.

I gather there is an @PathParam("myparametername") MyParemeterClass 
myLocalInstanceOfThatClass) but I'm not sure if this is the way this should do 
it, or if there are alternatives.  I'm also not exactly sure how this works.

So I guess my fundamental question is where can I find anything close to a 
tutorial or overview of ERRest?  (I have looked at the ERRestRouteExample 
example app)

Thanks in advance

Andrew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to