Closed (works as designed)
Project:
Services
Version:
7.x-3.17
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2016 at 13:05 UTC
Updated:
14 Mar 2019 at 00:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tyler.frankenstein commentedThis is possible with a patch. There are two related issues to this:
With the patch you can retrieve a fully loaded entity via the index resource. Then you just need to specify that you'd like "infinite" results to be available:
drush vset services_node_index_page_size 0Obviously be careful with this, because if someone were to try to load ALL nodes/comments/etc, you could easily run out of memory.
Comment #3
steva1982 commentedHi,
thank you for you suggestion. I have just applied the patch: https://github.com/signalpoint/services/commit/b3b0ebe7a26467c91d785c1e1...
Just a question: can you give me an example of the URL I should type? I can see the same output with all my custom fields with:
http://myurl/node.json?parameters[type]=page&pagesize=10&options[entity_...
http://myurl/node.json?parameters[type]=page&pagesize=10&options[entity_...
http://myurl/node.json?parameters[type]=page&pagesize=10&options[entity_...
...
and I don't understand if what is the value of "&options[entity_load]".
Thank you again.
Stefano
Comment #4
tyler.frankenstein commentedhttp://example.com/api/node.json?options[entity_load]=trueComment #5
steva1982 commentedok, thank you for everything.
Stefano
Comment #6
tyler.frankenstein commentedComment #7
mirakolous commentedNot resurrecting old issue, but the github repo moved so 404's for the patch. Uploading the patch here.
Comment #8
mirakolous commentedIgnore the last patch as it is completely irrelevant on this project and wrongfully uploaded. I grabbed the patch from github and re-rolled onto the latest stable branch.