Needs work
Project:
REST Server
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2009 at 14:21 UTC
Updated:
21 Apr 2010 at 18:20 UTC
Hi,
I've added quite a few new features to the module and I was wondering if you would like to incorporate them. Attached you'll find the new code which adds the following features:
By the way, I've just tested against D6 (but everything should work on D5).
cheers,
Ivan
| Comment | File | Size | Author |
|---|---|---|---|
| rest_server.module.gz | 2.73 KB | DrSlump |
Comments
Comment #1
Hugo Wetterberg commentedHi Ivan,
I just became co-maintainer for rest_server, and to mark that occasion we started off a 6.x-2.x development branch. It is a complete rewrite, and does much of the stuff that you suggest, and then some. Version 2 of REST depends on a pending patch to services (http://drupal.org/node/466922) that makes it possible to properly implement a REST server, so it's not possible to use it with any released version of services yet. But the source is up, both in CVS and on github: http://github.com/hugowetterberg/rest_server/tree/master so you're more than welcome to look at it, try it out and submit idéas and suggestions.
So, this might be a case of "won't fix", but that's up to Rob to decide.
Cheers
/Hugo
Comment #2
robloachWhat could happen is a merge in of the individual features proposed here. Would have to go by a case-by-case patch though. So, in the mean time, I'll set this to patch-needs-work. I really like where you're going here though!
Comment #3
Halip commentedHello Hugo,
I added the rest server, /services/rest/node/1 works fine. But /services/rest/menu/get/primary-links/link_path,link_title is not working. And I didn't find any help online. Any suggestions? Thanks.
/halip
Comment #4
Hugo Wetterberg commentedFirst of all, this is a new issue. I assume that this was a mistake on your part, but take care not to hijack issues in the future.
"menu/get/primary-links/link_path,link_title" doesn't work as that's not how the rest server treats rpc-style services. The correct way to call these methods (which are translated to actions see: http://drupal.org/node/570778#comment-2547806) is though a POST request to "service_menu/get" with the body:
{"name":"primary_links", "fields":["link_path","link_title"]}
(assuming that the request is made with the content type application/json)