Posted by sime on November 2, 2007 at 6:59am
My client is setting up a service, but they would like to have the call by url.
This is straight forward, I just parse the url arguments and we're away. But in order to use the services module and have our service display consistently, and use the api key functionality, I'm thinking a path_server.module might be the nicest way to do this.
One of our assumptions before we started the project was that Services would support this out of the box.. so my quick question is: have I missed something?? Is there something odd about my thinking? (Not unusual!)

Comments
REST?
If I understand you correctly, what you described sounds like REST. There is a REST module but I don't know about its state.
Thanks recidive. The PUT,
Thanks recidive. The PUT, DELETE, POST is not required. An example:
http://example.com/services/path/f059d07936a62cadf1b3a6abe7695cd1/beach/ger/xmlwould be content tagged "beach", in German, in XML format.
Easy enough to do with a manu callback, but by putting this through Services. we get the API key support, plus any services we write can be accessed with xmlrpc and amfphp - nice benefits.
I've nearly finished the server, been pretty simple, just a couple of hooks.
Hi sime, did you get
Hi sime, did you get somewhere with this approach? If so, I wonder if you could share some of that with us as I would really love to understand this and over the weekend was failing to do so.
Thanks in advance.
Building the world's largest news and information resources with Drupal: My-ANI on www.my-ani.com
I got two thirds through.
I stubbed it out as part of the project I'm on. I'm soon to meet with my client to see if they want to continue down this. I'll update this thread after that.
There are two ironic aspects of this:
-- if you have a url path server, what format do you return the data in?
-- we have found we are using this for testing purposes (it's so much easier to send someone a link to prove xyz is working.
Cheers
Sounds encouraging. With
Sounds encouraging. With regard to your two aspects:
I would prefer XML-output. It would not only allow reliable communication internally but would also offer the opportunity to provide public services at some point.
Yes, that's what I was looking for too.
I can't wait to get an idea on how you've done it - we do need that functionality on our sites and this approach is the most promising so far.
Cheers
Jürgen
Building the world's largest news and information resources with Drupal: My-ANI on www.my-ani.com
Still waiting for chance to
Still waiting for chance to discuss with client.
I wonder what would be the best way to pass arrays and keyed arrays via a url.
I was thinking /x,y,z/ for an array. /x=1,y=2,z=3/ for a keyed array? Not sure if this is going against some standard convention or if there is a precedent...
tokenauth
the tokenauth module allows for authentication via GET argument. just an FYI.
@sime, again, in XML that
@sime, again, in XML that would be simple I guess, something like
[array][item name="x"]1[/item]
[item name="y"]2[/item]
[item name="z"]3[/item]
[/array]
Building the world's largest news and information resources with Drupal: My-ANI on www.my-ani.com
Thanks for the pointer
Thanks for the pointer Moshe. :)
jurgenhaas: weren't we talking about a path server, passing parameters on the url. if you're describing passing parameters in xml, isn't that what xmlrpc does?
Sorry, I meant the result,
Sorry, I meant the result, not the parameters in the url.
However, if XMLRPC did the job I'd be happy to use that. But I have to admit that I haven't got a clue on how to get that to work either.
Building the world's largest news and information resources with Drupal: My-ANI on www.my-ani.com
New
New module
http://drupal.org/project/get_server