Closed (fixed)
Project:
RESTful Web Services
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2011 at 23:01 UTC
Updated:
8 May 2013 at 00:50 UTC
Hi,
the module is working but it's showing only main entity properties. Is there a way to see a field properties, attached to the selected node i.e. image or video path?
Thanks
Comments
Comment #1
dgtlmoon commentedyeah same, seems to lack support for content types
from node/2.json
it should have some data in field_picture
Comment #2
dgtlmoon commentedaffects current dev
Comment #3
allant commentedsubscribing, I really need to get image URL/data via JSON!
Edit: Okay, I -can- get the image url, but I have to do a lot of drilling and requests... which is really bad from a mobile phone.
For example,
I get my node JSON and find the uri for my first field collection item
I then query that uri, parse the JSON and get the file uri for my image
I then query that uri, parse the JSON and get the url for the image on my webserver
I query the url and get the image.
Then onto my second field collection item, and do it all over again!
That's 4 separate calls for each image. I want to populate a table which will have dozens of images in my iOS app. It ain't going to be pretty.
Ideally, I'd be able to filter by host_entity id and get all the images attached to my node id, but I can't without getting 412 Precondition Failed: Not a valid filter
Comment #4
sirkitree commentedYeah, this is a bit of a bummer. I would expect that the actual path to the image is delivered with the first payload.
Comment #5
sirkitree commentedFile info is now included, so this issues is fixed (in 7.x-2.x). However I did open another that is related: http://drupal.org/node/1978202