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

dgtlmoon’s picture

yeah same, seems to lack support for content types

from node/2.json

{"nid":"2","vid":"2","is_new":false,"type":"picture","title":"funny","language":"und","url":"http:\/\/d7services.localhost\/node\/2","edit_url":"http:\/\/d7services.localhost\/node\/2\/edit","status":"1","promote":"0","sticky":"0","created":"1325697881","changed":"1325697881","comment":"2","comment_count":"0","comment_count_new":false,"body":[],"field_picture":[]}

it should have some data in field_picture

dgtlmoon’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

affects current dev

allant’s picture

subscribing, 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

sirkitree’s picture

Yeah, this is a bit of a bummer. I would expect that the actual path to the image is delivered with the first payload.

sirkitree’s picture

Status: Active » Fixed

File 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.