Closed (won't fix)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 21:17 UTC
Updated:
27 Nov 2012 at 19:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
kylebrowning commentedMy initial patch is for 6.x mainly because we have all the tests for it.
This patch is not complete, but I want you guys to start reviewing it.
Things left to do
-Add actual non-targeted functions so you dont get 401 when accessing node/titles
Comment #2
kylebrowning commentedComment #3
gddI'm having a hard time figuring out what this buys us. Can someone come up with some concrete use cases that can't be solved much more easily using index? I know that the original issue (#987180: Don't allow GET-requests for resource actions in the REST server) was centered around nodeFiles which everyone (correctly) seemed to agree should be a targeted relationship on nodes. But is there really a use case for node/files where we retrieve them all?
Comment #4
voxpelli commented@heyrocker: node/files probably don't have a use case - but there will probably be a situation where we have a resource that relates to another resource on the top level? And even if it won't - people will need this option to abuse in a non restful way or they will beg for top level actions to be exposed over get-calls.
@kylebrowning: Why change the existing relationships? It would be enough to add a new non-targeted one? So we avoid an API-change.
Some coding style feedback:
Missing a space here
Space missing here as well
Comment #5
marcingy commentedMoving to current version and setting as postponed for consideration in 7.4
Comment #6
MrMaksimize commentedHey guys,
I have an issue here that would definitely be considered a use case. Sometimes, people want APIs to be multi-level paths, and it looks like that would solve the problem. What do you think? http://drupal.org/node/1203222
Comment #7
ardnet commentedHi MrMaksimize, what you meant is something like: {endpoint}/node/story/5
which mean that, get the content type story on page 5. Something like that, right?
I'm looking forward for that as well.
Comment #8
ardnet commented-- sorry, double post --
Comment #9
didlix commentedSubscribe
Comment #10
kylebrowning commented