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