Search the web
Sign In
New User? Sign Up
sacjug · Sacramento Java User Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
REST Discussion, thanks!   Message List  
Reply | Forward Message #919 of 983 |
Thanks Marnie and Tom!

Ok, so I think I get it.  For REST you want to think about resources (nouns) instead of actions (verbs).  And for the more complicated cases you can map any function to a REST call.  Simply consider the return of the function as the resource you are trying to get and the arguments are the query string.  Ok, that makes sense.

I guess it even works for functions with a return void type.  For example,

void moveTwoUsersToRealm(user1, user2, realm)

you simply need to focus on one of the nouns, in this case I'd pick the realm, and do something like this:


How does this look?  I think I see how the edge cases work.

Been playing with the Restlet library.  It offers some neat functionality with Routers and Guards.  I the examples and documentation are a bit lacking but I've gotten past the critical point and and now moving at a decent pace.  Hopefully I'll have more on this at our next meeting.

Thanks for the discussion Marnie and Tom.

Kindest regards,

--
Daniel


Fri Aug 1, 2008 2:16 pm

danglauser
Offline Offline
Send Email Send Email

Forward
Message #919 of 983 |
Expand Messages Author Sort by Date

Thanks Marnie and Tom! Ok, so I think I get it. For REST you want to think about resources (nouns) instead of actions (verbs). And for the more complicated...
Dan Glauser
danglauser
Offline Send Email
Aug 1, 2008
7:34 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help